|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread ix.isim.ISimEngine
public class ISimEngine
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
(package private) static Symbol |
executeWithSy
the annotation "predicate" that tells the simulation which class to invoke to simulate an action |
protected ISimEventsFrame |
simEventsFrame
the Frame for displaying the events etc. |
protected ISim |
theISim
the ISim to which this ISimEngine belongs |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ISimEngine(ISim isim)
public constructor just memorizes theISim agent this engine belongs to |
Method Summary | |
---|---|
void |
clearAllWaitingEvents()
|
void |
executeNextEvent()
|
long |
getSimStartTime()
This function returns the the simulated time at which the simulation was started. |
void |
loadTimedEvents(java.io.File[] eventFiles)
This function loads the timed events from the given Files. |
void |
pauseSimulation()
|
void |
resumeSimulation()
|
void |
run()
|
void |
startSimulation(long simTime,
double factor)
|
protected void |
updateStatus(TimedEvent event,
int status)
|
protected void |
updateUI()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final Symbol executeWithSy
protected ISim theISim
protected ISimEventsFrame simEventsFrame
Constructor Detail |
---|
public ISimEngine(ISim isim)
isim
- the ISim that owns this simulation engineMethod Detail |
---|
public long getSimStartTime()
public void loadTimedEvents(java.io.File[] eventFiles)
events
- the Files containing the timed eventspublic void startSimulation(long simTime, double factor)
protected void updateUI()
protected void updateStatus(TimedEvent event, int status)
public void pauseSimulation()
public void resumeSimulation()
public void clearAllWaitingEvents()
public void executeNextEvent()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |