Class EventDrivenEngine
java.lang.Object
org.episteme.natural.engineering.eventdriven.EventDrivenEngine
- All Implemented Interfaces:
Runnable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleintvoidjoin()voidregisterEntity(SimulationAgent entity) voidrun()voidscheduleEvent(String targetId, EventSpec spec, double delay, Object... args) Schedules an event to occur after a delay.voidvoidsendInternalEvent(SimulationAgent target, EventSpec spec, Object... args) voidstart()voidstop()voidunregisterEntity(String entityId)
-
Constructor Details
-
EventDrivenEngine
-
EventDrivenEngine
-
-
Method Details
-
getEntity
-
getNumThreads
public int getNumThreads() -
getCurrentTime
public double getCurrentTime() -
registerEntity
-
unregisterEntity
-
start
public void start() -
stop
public void stop() -
join
- Throws:
InterruptedException
-
scheduleEvent
-
sendEvent
-
sendInternalEvent
-
run
-