|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimController
Interface to control the execution of a simulation.
Method Summary | ||
---|---|---|
Time |
advance(Time time,
Time next)
Request a time advance. |
|
|
change(Element element,
java.lang.String name,
T value)
The attribute value of a simulation element will be changed. |
|
void |
finish(Time time)
A simulation thread will be finished. |
|
double |
getSpeed()
Get the simulation speed factor, given in multiples of real-time. |
|
|
request(Element element,
java.lang.String name,
T value)
The attribute value of a simulation element is requested. |
|
void |
setSpeed(double speed)
Set the simulation speed factor, given in multiples of real-time. |
|
Time |
start(Time time)
A simulation thread will be started. |
Methods inherited from interface jasi.sim.basic.control.SimListener |
---|
advancedTime, finishedReadingArchive, finishedSimulation, finishedWritingArchive, gotException, gotMessage, startedSimulation, startReadingArchive, startWritingArchive |
Methods inherited from interface jasi.sim.basic.element.ElementsListener |
---|
changedElement, createdElement, deletedElement, requestedElement |
Methods inherited from interface jasi.sim.basic.event.CalendarListener |
---|
poppedEvent, pushedEvent, removedEvent |
Method Detail |
---|
Time start(Time time)
time
- The requested start time.
AbstractSimKernel.startSimulation()
Time advance(Time time, Time next)
time
- The current time.next
- The requested time advance.
AbstractSimKernel.continueSimulation(jasi.sim.basic.value.Time, jasi.sim.basic.value.Time)
void finish(Time time)
time
- The current time.AbstractSimKernel.finishSimulation()
<T> boolean change(Element element, java.lang.String name, T value)
T
- The value type.element
- The simulation element.name
- The attribute's name.value
- The new value of the attribute.
<T> T request(Element element, java.lang.String name, T value)
T
- The value type.element
- The simulation element.name
- The attribute's name.value
- The current value of the attribute.
void setSpeed(double speed)
speed
- The simulation speed factor.double getSpeed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |