Class SimpleEventBasedSimEntity
- java.lang.Object
-
- de.uka.ipd.sdq.simulation.abstractsimengine.SimpleEventBasedSimEntity
-
- All Implemented Interfaces:
IEntity
public abstract class SimpleEventBasedSimEntity extends Object implements IEntity
A simplified version ofAbstractSimEntityDelegator. 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleEventBasedSimEntity(ISimEventFactory eventFactory, String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidactivate(double initialDelay)protected abstract Optional<Double>entityRoutine()Optional<Double>getNextOccurence()booleanisScheduled()voidreschedule(double d)voidunschedule()
-
-
-
Constructor Detail
-
SimpleEventBasedSimEntity
protected SimpleEventBasedSimEntity(ISimEventFactory eventFactory, String name)
-
-
Method Detail
-
isScheduled
public boolean isScheduled()
- Specified by:
isScheduledin interfaceIEntity
-
activate
public void activate(double initialDelay)
-
reschedule
public void reschedule(double d)
- Specified by:
reschedulein interfaceIEntity
-
unschedule
public void unschedule()
-
-