Class Operation
java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.Entity
cambio.simulator.entities.NamedEntity
cambio.simulator.entities.microservice.Operation
An
Operation represents an endpoint of a service. It has a specific computational demand
and may have dependencies.-
Field Summary
Fields inherited from class desmoj.core.simulator.Schedulable
_schedule -
Constructor Summary
ConstructorsConstructorDescriptionOperation(desmoj.core.simulator.Model model, String name, boolean showInTrace, Microservice ownerMS, int demand) Constructs a new endpoint for a microservice. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyExtraDelay(desmoj.core.dist.NumericalDist<Double> dist) Add extra delay to every dependency of this operation.voidapplyExtraDelay(desmoj.core.dist.NumericalDist<Double> dist, Operation operationTrg) Add additional delay to this operation.intGets a quoted version of the name of this object.toString()Methods inherited from class cambio.simulator.entities.NamedEntity
getPlainName, getQuotedPlainName, renameMethods 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, 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
-
Operation
public Operation(desmoj.core.simulator.Model model, String name, boolean showInTrace, Microservice ownerMS, int demand) Constructs a new endpoint for a microservice.- Parameters:
ownerMS-Microservicethat owns this operation.demand- CPU demand of this operation.
-
-
Method Details
-
getDependencyDescriptions
-
getDemand
public int getDemand() -
getOwnerMS
-
getQuotedName
Description copied from class:NamedEntityGets a quoted version of the name of this object. The name will include the object number assigned by DESMO-J.- Overrides:
getQuotedNamein classNamedEntity- Returns:
- the name of this entity surrounded with ' quotes.
-
toString
- Overrides:
toStringin classdesmoj.core.simulator.NamedObject
-
getFullyQualifiedName
-
getFullyQualifiedPlainName
-
getQuotedFullyQualifiedName
-
applyExtraDelay
Add extra delay to every dependency of this operation.- Parameters:
dist-NumericalDistof the delay.
-
applyExtraDelay
Add additional delay to this operation.- Parameters:
dist-NumericalDistof the delay.operationTrg- targetOperationof this that should be affected, can be set tonullto affect all outgoingServiceDependencyInstances
-