Class SimpleEventBasedSimEntity
java.lang.Object
de.uka.ipd.sdq.simulation.abstractsimengine.SimpleEventBasedSimEntity
- All Implemented Interfaces:
IEntity
A simplified version of
AbstractSimEntityDelegator
.
The entity supports re-occuring schedules. After being activated, the entityRouting is executed
at the specified initialDelay. If the entity should be rescheduled, the entityRoutine needs to
return the amount of time to the next occurence.-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
SimpleEventBasedSimEntity
(ISimEventFactory eventFactory, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(double initialDelay) boolean
void
reschedule
(double d) void
-
Constructor Details
-
SimpleEventBasedSimEntity
-
-
Method Details
-
isScheduled
public boolean isScheduled()- Specified by:
isScheduled
in interfaceIEntity
-
getNextOccurence
-
activate
public void activate(double initialDelay) -
reschedule
public void reschedule(double d) - Specified by:
reschedule
in interfaceIEntity
-
unschedule
public void unschedule() -
entityRoutine
-