|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LaraModel
Classes that implement this interface need to provide basic simulation functionality for LARA like time stepping etc. For many cases, this represents an adapter to existing simulation frameworks.
Method Summary | |
---|---|
Date |
getCurrentDate()
Returns the Date object for the date that is associated with the
current tick. |
LSimulationStage |
getCurrentSimulationStage()
Returns the current simulation stage, no matter if agents are triggered synchronously or asynchronously. |
int |
getCurrentStep()
Retrieve the current overall time step. |
NumberFormat |
getFloatPointFormat()
Returns a NumberFormat to format decimal floating point numbers |
NumberFormat |
getIntegerFormat()
Returns a NumberFormat to format integer numbers |
LaraRandom |
getLRandom()
Return the random manager that is used for random processes in LARA. |
void |
setCurrentStep(int step)
Set the current overall time step. |
void |
step()
This method id invoked by the model controller to trigger the model. |
void |
step(int stepIncrease)
This method id invoked by the model controller to trigger the model. |
Method Detail |
---|
Date getCurrentDate()
Date
object for the date that is associated with the
current tick. Note that several ticks may be associated with the same
Date
.
LSimulationStage getCurrentSimulationStage()
int getCurrentStep()
NumberFormat getFloatPointFormat()
NumberFormat
to format decimal floating point numbers
NumberFormat getIntegerFormat()
NumberFormat
to format integer numbers
LaraRandom getLRandom()
LaraRandom
class is instantiated only
once since creating an instance every time this method is called results
in starting the random sequence anew each time the method is called!
void setCurrentStep(int step)
step
- the current time step of the overall modelvoid step()
void step(int stepIncrease)
stepIncrease
- the number of steps to increase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |