Class Pattern
java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.Entity
de.rss.fachstudie.MiSim.entities.patterns.Pattern
- Direct Known Subclasses:
InstanceOwnedPattern,ServiceOwnedPattern
public abstract class Pattern
extends desmoj.core.simulator.Entity
- Author:
- Lion Wagner
-
Field Summary
Fields inherited from class desmoj.core.simulator.Schedulable
_schedule -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidinitFields(Map<String,Object> arguments)Reflectively initializes all fields based on name and arguments.protected voidonFieldInitCompleted()Can be implemented to do some custom initialization after the fields were injectedabstract voidshutdown()Will be called by the owning instance upon an unexpected shutdown (kill)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, setQueueingPriorityMethods inherited from class desmoj.core.simulator.Schedulable
assignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, rename, 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, getQuotedName, toString
-
Constructor Details
-
Pattern
-
-
Method Details
-
initFields
Reflectively initializes all fields based on name and arguments.
Fields marked asfinalwill not be set properly. (In IntelliJ debugging they appear to be correct, but they are not!)
However, they can be set toprivate.Mark fields that should be injected from with the
FromJsonannotation.- Parameters:
arguments- Map of arguments of name and value key-value pairs.- See Also:
FromJson
-
onFieldInitCompleted
protected void onFieldInitCompleted()Can be implemented to do some custom initialization after the fields were injected -
shutdown
public abstract void shutdown()Will be called by the owning instance upon an unexpected shutdown (kill)
-