Package cambio.simulator.events
Class SummonerMonkeyEvent
java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.EventAbstract
desmoj.core.simulator.ExternalEvent
cambio.simulator.entities.NamedExternalEvent
cambio.simulator.events.ExperimentAction
cambio.simulator.events.SelfScheduledExperimentAction
cambio.simulator.events.SummonerMonkeyEvent
- All Implemented Interfaces:
ISelfScheduled
A
SummonerMonkeyEvent is an ExternalEvent that gets scheduled at the begin of the experiment. It
starts a specified number of MicroserviceInstances of a specified Microservice in its
eventRoutine method.-
Field Summary
Fields inherited from class cambio.simulator.events.ExperimentAction
initialArrivalTimeFields inherited from class desmoj.core.simulator.EventAbstract
numberOfEntitiesFields inherited from class desmoj.core.simulator.Schedulable
_schedule -
Constructor Summary
ConstructorsConstructorDescriptionSummonerMonkeyEvent(desmoj.core.simulator.Model model, String name, boolean showInTrace) SummonerMonkeyEvent(desmoj.core.simulator.Model owner, String name, boolean showInTrace, Microservice microservice, int instances) Instantiate aSummonerMonkeyEvent. -
Method Summary
Methods inherited from class cambio.simulator.events.SelfScheduledExperimentAction
doInitialSelfSchedule, setTargetTimeMethods inherited from class cambio.simulator.events.ExperimentAction
getInitialArrivalTimeMethods inherited from class cambio.simulator.entities.NamedExternalEvent
eventRoutine, getPlainName, getQuotedName, getQuotedPlainName, renameMethods inherited from class desmoj.core.simulator.ExternalEvent
clone, schedule, schedule, schedule, schedule, scheduleAfter, scheduleBefore, schedulePreemptMethods inherited from class desmoj.core.simulator.EventAbstract
generateTraceForScheduling, getNumberOfEntities, getRealTimeConstraint, getSchedulingPriority, isExternal, setRealTimeConstraint, setSchedulingPriorityMethods inherited from class desmoj.core.simulator.Schedulable
assignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, reSchedule, reSchedule, reSchedulePreempt, scheduledNext, setCorrespondingReportableMethods inherited from class desmoj.core.simulator.ModelComponent
current, currentEntity, currentEntityAll, currentEvent, currentlySendDebugNotes, currentlySendTraceNotes, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOnMethods inherited from class desmoj.core.simulator.NamedObject
getName
-
Constructor Details
-
SummonerMonkeyEvent
-
SummonerMonkeyEvent
public SummonerMonkeyEvent(desmoj.core.simulator.Model owner, String name, boolean showInTrace, Microservice microservice, int instances) Instantiate aSummonerMonkeyEvent.- Parameters:
owner- Model: The model that owns this eventname- String: The name of this eventshowInTrace- boolean: Declaration if this event should be shown in the tracemicroservice- int: The ID of the microservice whose instances should be startedinstances- int: The number of instances of the specified microservice should be started
-
-
Method Details
-
onRoutineExecution
public void onRoutineExecution() throws co.paralleluniverse.fibers.SuspendExecutionThe eventRoutine of theSummonerMonkeyEvent. Starts a specified number of instances of a specifiedMicroservice.- Specified by:
onRoutineExecutionin classNamedExternalEvent- Throws:
co.paralleluniverse.fibers.SuspendExecution
-
toString
- Overrides:
toStringin classdesmoj.core.simulator.NamedObject
-