|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISimulation
This interface is implemented by classes that represent Simulations of Scenarios.
Field Summary | |
---|---|
static int |
TOTAL_WORK
The percentage of work that represents a complete simulation. |
Method Summary | |
---|---|
void |
addSimulationListener(ISimulationListener simulationListener)
|
java.lang.String |
getName()
|
java.lang.String |
getNameWithSequenceNumber()
|
Scenario |
getScenario()
|
int |
getSequenceNumber()
|
SimulationState |
getSimulationState()
|
void |
pause()
Pause the simulation |
void |
removeSimulationListener(ISimulationListener simulationListener)
|
void |
reset()
Reset the simulation. |
void |
run()
Start running the simulation. |
void |
setSequenceNumber(int sequenceNumber)
|
void |
step()
Step the simulation one step/cycle if it hasn't already ended |
void |
stop()
Stop the simulation; |
Field Detail |
---|
static final int TOTAL_WORK
Method Detail |
---|
int getSequenceNumber()
void setSequenceNumber(int sequenceNumber)
sequenceNumber
- The sequence number of the simulationSimulationState getSimulationState()
void run()
void pause()
void reset()
void step()
void stop()
Scenario getScenario()
Scenario
being simulatedjava.lang.String getName()
java.lang.String getNameWithSequenceNumber()
getSequenceNumber()
,
getName()
void addSimulationListener(ISimulationListener simulationListener)
simulationListener
- void removeSimulationListener(ISimulationListener simulationListener)
simulationListener
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |