Class PeriodicServiceOwnedPattern

java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.Entity
Direct Known Subclasses:
PreemptiveAutoScaler

public abstract class PeriodicServiceOwnedPattern
extends ServiceOwnedPattern
Author:
Lion Wagner
  • Field Summary

    Fields inherited from class de.rss.fachstudie.MiSim.entities.patterns.ServiceOwnedPattern

    owner

    Fields inherited from class desmoj.core.simulator.Schedulable

    _schedule
  • Constructor Summary

    Constructors
    Constructor Description
    PeriodicServiceOwnedPattern​(desmoj.core.simulator.Model model, String name, boolean showInTrace, Microservice owner)  
  • Method Summary

    Modifier and Type Method Description
    protected void onFieldInitCompleted()
    Can be implemented to do some custom initialization after the fields were injected
    protected abstract void onTriggered()  
    void shutdown()
    Will be called by the owning instance upon an unexpected shutdown (kill)
    void trigger()
    Manually triggers this patterns' routine.

    Methods inherited from class de.rss.fachstudie.MiSim.entities.patterns.Pattern

    initFields

    Methods inherited from class desmoj.core.simulator.Entity

    clone, generateTraceForScheduling, getIdentNumber, getQueueingPriority, getQueues, getScheduledEvents, isEqual, isLarger, isLargerOrEqual, isNotEqual, isQueued, isSimProcess, isSmaller, isSmallerOrEqual, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, scheduleAfter, scheduleAfter, scheduleAfter, scheduleBefore, scheduleBefore, scheduleBefore, schedulePreempt, schedulePreempt, schedulePreempt, setQueueingPriority

    Methods inherited from class desmoj.core.simulator.Schedulable

    assignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, rename, 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, getQuotedName, toString

    Methods inherited from class java.lang.Object

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

    • PeriodicServiceOwnedPattern

      public PeriodicServiceOwnedPattern​(desmoj.core.simulator.Model model, String name, boolean showInTrace, Microservice owner)
  • Method Details

    • onFieldInitCompleted

      protected void onFieldInitCompleted()
      Description copied from class: Pattern
      Can be implemented to do some custom initialization after the fields were injected
      Overrides:
      onFieldInitCompleted in class Pattern
    • trigger

      public void trigger()
      Manually triggers this patterns' routine.
    • onTriggered

      protected abstract void onTriggered()
    • shutdown

      public void shutdown()
      Description copied from class: Pattern
      Will be called by the owning instance upon an unexpected shutdown (kill)
      Specified by:
      shutdown in class Pattern