|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaos.jack.sim.run.Monitor
This base class is used to control repeated iterations of the same simulation scenario within the same JACK Sim process and infrastructure. A derived class is usually created and initialised indirectly via a scenario definition file using the MonitorInit structure. Some of the contained methods should be overridden in the derived class in order to run your own code at the approprate times. Other methods are provided to return information regarding the control of scenario iterations.
Constructor Summary | |
Monitor()
|
Method Summary | |
int |
getIterations()
Returns the number of iterations that are scheduled to run. |
long |
getRandomSeed()
This can be used to return the current seed. |
int |
getRunNumber()
Returns the number of the current scenario iteration. |
void |
initRandomSeed(long val)
This is automatically called when the Monitor object is created via the scenario definition file. |
boolean |
isForcedQuit()
Used inside JACK Sim to check whether early termination has been requested. |
void |
notifyNextRun()
Automatically called by JACK Sim after a scenario iteration finishes. |
void |
runAfter()
Automatically called by JACK Sim after a scenario iteration finishes. |
void |
runBefore()
Automatically called by JACK Sim before a scenario iteration begins. |
void |
runFirst()
Automatically called by JACK Sim before the first scenario iteration begins. |
void |
runLast()
Automatically called by JACK Sim after the last scenario iteration ends. |
void |
setForcedQuit(boolean val)
This is called by Loader.stopCurrentRun() with a true value to set a flag that will cause the current scenario iteration to terminate prematurely. |
void |
setIterations(int num)
Automatically called when the Monitor object is created via the scenario definition file. |
void |
setRunNumber(int num)
Automatically called by JACK Sim to record the number of the next iteration when it is about to begin. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Monitor()
Method Detail |
public void initRandomSeed(long val)
public long getRandomSeed()
public void setIterations(int num)
public void setRunNumber(int num)
public int getIterations()
public int getRunNumber()
public void runFirst()
public void runLast()
public void runBefore()
public void runAfter()
public void notifyNextRun()
public void setForcedQuit(boolean val)
public boolean isForcedQuit()
|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.