Class SummonerMonkeyEvent

java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.EventAbstract
All Implemented Interfaces:
ISelfScheduled

public class SummonerMonkeyEvent extends SelfScheduledExperimentAction
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

    initialArrivalTime

    Fields inherited from class desmoj.core.simulator.EventAbstract

    numberOfEntities

    Fields inherited from class desmoj.core.simulator.Schedulable

    _schedule
  • Constructor Summary

    Constructors
    Constructor
    Description
    SummonerMonkeyEvent(desmoj.core.simulator.Model model, String name, boolean showInTrace)
     
    SummonerMonkeyEvent(desmoj.core.simulator.Model owner, String name, boolean showInTrace, Microservice microservice, int instances)
    Instantiate a SummonerMonkeyEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The eventRoutine of the SummonerMonkeyEvent.
     

    Methods inherited from class cambio.simulator.events.SelfScheduledExperimentAction

    doInitialSelfSchedule, setTargetTime

    Methods inherited from class cambio.simulator.events.ExperimentAction

    getInitialArrivalTime

    Methods inherited from class cambio.simulator.entities.NamedExternalEvent

    eventRoutine, getPlainName, getQuotedName, getQuotedPlainName, rename

    Methods inherited from class desmoj.core.simulator.ExternalEvent

    clone, schedule, schedule, schedule, schedule, scheduleAfter, scheduleBefore, schedulePreempt

    Methods inherited from class desmoj.core.simulator.EventAbstract

    generateTraceForScheduling, getNumberOfEntities, getRealTimeConstraint, getSchedulingPriority, isExternal, setRealTimeConstraint, setSchedulingPriority

    Methods inherited from class desmoj.core.simulator.Schedulable

    assignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, reSchedule, reSchedule, reSchedulePreempt, scheduledNext, setCorrespondingReportable

    Methods 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, traceOn

    Methods inherited from class desmoj.core.simulator.NamedObject

    getName

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SummonerMonkeyEvent

      public SummonerMonkeyEvent(desmoj.core.simulator.Model model, String name, boolean showInTrace)
    • SummonerMonkeyEvent

      public SummonerMonkeyEvent(desmoj.core.simulator.Model owner, String name, boolean showInTrace, Microservice microservice, int instances)
      Instantiate a SummonerMonkeyEvent.
      Parameters:
      owner - Model: The model that owns this event
      name - String: The name of this event
      showInTrace - boolean: Declaration if this event should be shown in the trace
      microservice - int: The ID of the microservice whose instances should be started
      instances - int: The number of instances of the specified microservice should be started
  • Method Details

    • onRoutineExecution

      public void onRoutineExecution() throws co.paralleluniverse.fibers.SuspendExecution
      The eventRoutine of the SummonerMonkeyEvent. Starts a specified number of instances of a specified Microservice.
      Specified by:
      onRoutineExecution in class NamedExternalEvent
      Throws:
      co.paralleluniverse.fibers.SuspendExecution
    • toString

      public String toString()
      Overrides:
      toString in class desmoj.core.simulator.NamedObject