|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.Presentable
com.xj.anylogic.engine.Utilities
com.xj.anylogic.engine.Experiment<ROOT>
com.xj.anylogic.engine.ExperimentCompareRuns<ROOT>
public abstract class ExperimentCompareRuns<ROOT extends ActiveObject>
Experiment used to run simulation several times with different parameter
values set by user before each run.
To use this experiment you need to subclass from it and override method
Experiment.onEngineFinished().
This object is only available in the AnyLogic Professional
| Field Summary |
|---|
| Fields inherited from class com.xj.anylogic.engine.Experiment |
|---|
ERROR, FINISHED, IDLE, modelExecutionCommandQueue, mutexModelActionQueue, OPEN_RESULTS, OPEN_SNAPSHOT, PAUSE, PAUSED, PLEASE_WAIT, RUN, RUNNING, SAVE_RESULTS, SAVE_SNAPSHOT, STEP, STOP |
| Fields inherited from class com.xj.anylogic.engine.Utilities |
|---|
AM, APRIL, AUGUST, DAY, DECEMBER, FEBRUARY, FRIDAY, HOUR, infinity, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, TIME_UNIT_DAY, TIME_UNIT_HOUR, TIME_UNIT_MILLISECOND, TIME_UNIT_MINUTE, TIME_UNIT_SECOND, TIME_UNIT_WEEK, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK, YEAR |
| Constructor Summary | |
|---|---|
ExperimentCompareRuns()
|
|
| Method Summary | |
|---|---|
Engine |
getEngine()
Returns the engine executing the model. |
double |
getProgress()
Returns the progress of the experiment: in this case it is the same as the progress of the current simulation run. |
double |
getRunTimeSeconds()
Returns the real duration of the experiment in seconds. |
int |
getState()
Returns the current state of the experiment. |
boolean |
isCommandEnabled(int cmd)
Checks if a command can be executed. |
void |
pause()
Pauses the model execution. |
void |
registerPresentation_xjal(Presentation presentation)
This method isn't designed to be called by user. |
void |
run()
Runs the model from the current state. |
abstract void |
setupRootParameters(ROOT root,
boolean callOnChangeActions)
Is called to setup parameters of root active object. |
void |
step()
Performs one step of the model execution. |
void |
stop()
Terminates the model execution, destroys and forgets the model and calls garbage collector, but keeps all experiment data. |
| Methods inherited from class com.xj.anylogic.engine.Experiment |
|---|
close, createRoot, error, getCommandLineArguments, getMutexRead_xjal, getMutexWrite_xjal, getName, getPresentation, getRunCount, getSnapshotFileName, getStep, getWindowHeight, getWindowWidth, initDefaultRandomNumberGenerator, isLoadRootFromSnapshot, onBeforeSimulationRun, onDestroy_xjal, onDestroy, onEngineFinished, onError, reset, setCommandLineArguments_xjal, setLoadRootFromSnapshot, setName, setup, setupEngine |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExperimentCompareRuns()
| Method Detail |
|---|
public final double getProgress()
public boolean isCommandEnabled(int cmd)
Experiment
isCommandEnabled in class Experiment<ROOT extends ActiveObject>cmd - the command id
public abstract void setupRootParameters(ROOT root,
boolean callOnChangeActions)
root - the root active object instancecallOnChangeActions - if true this method should
use set_* methods of root to setup
parameters, otherwise parameter values should be simply
assigned to the fields of rootpublic Engine getEngine()
getEngine in class Presentablepublic final int getState()
getState in class Experiment<ROOT extends ActiveObject>public final double getRunTimeSeconds()
getRunTimeSeconds in class Experiment<ROOT extends ActiveObject>public final void run()
run in class Experiment<ROOT extends ActiveObject>public final void step()
step in class Experiment<ROOT extends ActiveObject>public final void pause()
pause in class Experiment<ROOT extends ActiveObject>public final void stop()
stop in class Experiment<ROOT extends ActiveObject>public void registerPresentation_xjal(Presentation presentation)
Experiment
registerPresentation_xjal in class Experiment<ROOT extends ActiveObject>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||