public class ExternalEventStop extends ExternalEvent
Constructor and Description |
---|
ExternalEventStop(Model owner,
java.lang.String name,
boolean showInTrace)
Constructs an external event to abort the experiment.
|
Modifier and Type | Method and Description |
---|---|
void |
eventRoutine()
The eventRoutine to abort an experiment.
|
void |
eventRoutine(Entity who)
Do not use this method to implement the external event's eventRoutine!
|
void |
schedule(TimeInstant when)
Schedules this external event to make the desired changes to the
experiment or model at the specified point in simulation time.
|
void |
schedule(TimeSpan dt)
Schedules this external event to make the desired changes to the
experiment or model at the current point of time plus the given span of
time
|
void |
scheduleAfter(Schedulable after)
Schedules this external event to act on the experiment or model state
directly after the given Schedulable is already set to be activated.
|
void |
scheduleBefore(Schedulable before)
Schedules this external event to act on the experiment or model state
directly before the given Schedulable is already set to be activated.
|
schedule, schedule, schedulePreempt
getNumberOfEntities, getRealTimeConstraint, getSchedulingPriority, isExternal, setRealTimeConstraint, setSchedulingPriority
assignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedulePreempt, scheduledNext, setCorrespondingReportable
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName, toString
public ExternalEventStop(Model owner, java.lang.String name, boolean showInTrace)
owner
- desmoj.Model : The model this external event is associated toname
- java.lang.String : The external event's nameshowInTrace
- boolean : Flag indicating if the external event is shown in
the reportpublic void eventRoutine()
eventRoutine
in class ExternalEvent
public void eventRoutine(Entity who)
Event
. Since external events are designed to act on
the model or experiment in general and are not associated to an
individual Entity, you should use the parameterless method
void eventRoutine()
instead. Calling this method will result
in a warning message and the parameterless method will be called. The
given Entity will not be changed. Do not override this method in your
special external events!ExternalEvent.eventRoutine()
public void schedule(TimeSpan dt)
schedule
in class ExternalEvent
dt
- TimeSpan : The offset to the current simulation time at which
this external event is to be scheduledSimClock
public void schedule(TimeInstant when)
schedule
in class ExternalEvent
when
- TimeInstant : The point in simulation time this external event
is scheduled to happen.SimClock
public void scheduleAfter(Schedulable after)
scheduleAfter
in class ExternalEvent
after
- Schedulable : The Schedulable this external event should be
scheduled afterpublic void scheduleBefore(Schedulable before)
scheduleBefore
in class ExternalEvent
before
- Schedulable : The Schedulable this external event should be
scheduled before