Class Engine
java.lang.Object
java.lang.Thread
simu.framework.Engine
- Direct Known Subclasses:
MyEngine
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IControllerMtoVprotected EventListprotected ServicePoint[]Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetDelay()protected abstract voidvoidprotected abstract voidresults()voidvoidrun()protected abstract voidvoidsetDelay(long time) voidsetSimulationTime(double time) voidMethods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, threadId, toString, yield
-
Field Details
-
eventList
-
servicePoints
-
controller
-
-
Constructor Details
-
Engine
-
-
Method Details
-
setSimulationTime
public void setSimulationTime(double time) - Specified by:
setSimulationTimein interfaceIEngine
-
setDelay
-
getDelay
-
run
-
pauseSimulation
public void pauseSimulation()- Specified by:
pauseSimulationin interfaceIEngine
-
resumeSimulation
public void resumeSimulation()- Specified by:
resumeSimulationin interfaceIEngine
-
stepSimulation
public void stepSimulation()- Specified by:
stepSimulationin interfaceIEngine
-
initialization
protected abstract void initialization() -
runEvent
-
results
protected abstract void results()
-