Class DesmoJSimEvent<E extends IEntity>
- java.lang.Object
-
- desmoj.core.simulator.NamedObject
-
- desmoj.core.simulator.ModelComponent
-
- desmoj.core.simulator.Schedulable
-
- desmoj.core.simulator.EventAbstract
-
- desmoj.core.simulator.Event<desmoj.core.simulator.Entity>
-
- de.uka.ipd.sdq.simulation.abstractsimengine.desmoj.DesmoJSimEvent<E>
-
-
Constructor Summary
Constructors Constructor Description DesmoJSimEvent(ISimRunnable<E> event, DesmoJModel owner, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
eventRoutine(desmoj.core.simulator.Entity who)
The event handler, which is called by DESMO-J when an event occurred.void
removeEvent()
Removes this event from the list of future events.void
schedule(E entity, double delay)
Schedules this event to occur indelay
simulated time units.double
scheduledAtTime()
-
Methods inherited from class desmoj.core.simulator.Event
clone, schedule, schedule, schedule, scheduleAfter, scheduleBefore
-
Methods inherited from class desmoj.core.simulator.EventAbstract
generateTraceForScheduling, getNumberOfEntities, getRealTimeConstraint, isExternal, setRealTimeConstraint
-
Methods inherited from class desmoj.core.simulator.Schedulable
cancel, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedule, scheduledAt, scheduledNext
-
Methods inherited from class desmoj.core.simulator.ModelComponent
current, currentEntity, currentEntityAll, currentEvent, currentlySendDebugNotes, currentlySendTraceNotes, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
-
-
-
-
Constructor Detail
-
DesmoJSimEvent
public DesmoJSimEvent(ISimRunnable<E> event, DesmoJModel owner, String name)
-
-
Method Detail
-
eventRoutine
public void eventRoutine(desmoj.core.simulator.Entity who)
The event handler, which is called by DESMO-J when an event occurred.- Specified by:
eventRoutine
in classdesmoj.core.simulator.Event<desmoj.core.simulator.Entity>
- See Also:
Event.eventRoutine(desmoj.core.simulator.Entity)
-
schedule
public void schedule(E entity, double delay)
Description copied from interface:ISimEvent
Schedules this event to occur indelay
simulated time units.
-
removeEvent
public void removeEvent()
Description copied from interface:ISimEvent
Removes this event from the list of future events.- Specified by:
removeEvent
in interfaceISimEvent<E extends IEntity>
-
scheduledAtTime
public double scheduledAtTime()
- Specified by:
scheduledAtTime
in interfaceISimEvent<E extends IEntity>
-
-