Package cambio.simulator.resources.cpu
Class ComputationBurstCompletedEvent
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.resources.cpu.ComputationBurstCompletedEvent
Event that represents the completion of a process burst for a specific
CPUProcess
.
Automatically notifies its current CPU that this burst finished, so it can continue with the next burst.
Fires a ComputationCompletedEvent
automatically if the CPUProcess
was finished with the current
burst.
- Author:
- Lion Wagner
-
Field Summary
Fields inherited from class desmoj.core.simulator.EventAbstract
numberOfEntities
Fields inherited from class desmoj.core.simulator.Schedulable
_schedule
-
Constructor Summary
ConstructorsConstructorDescriptionComputationBurstCompletedEvent
(desmoj.core.simulator.Model model, String name, boolean showInTrace, CPUProcess endingProcess, CPU owner, int completedDemand) Constructs a newComputationBurstCompletedEvent
. -
Method Summary
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, toString
-
Constructor Details
-
ComputationBurstCompletedEvent
public ComputationBurstCompletedEvent(desmoj.core.simulator.Model model, String name, boolean showInTrace, CPUProcess endingProcess, CPU owner, int completedDemand) Constructs a newComputationBurstCompletedEvent
.- Parameters:
endingProcess
-CPUProcess
that ends with this burstowner
-CPU
that is handling the calculationcompletedDemand
- demand that was completed by the computation burst.
-
-
Method Details
-
onRoutineExecution
public void onRoutineExecution() throws co.paralleluniverse.fibers.SuspendExecution- Specified by:
onRoutineExecution
in classNamedExternalEvent
- Throws:
co.paralleluniverse.fibers.SuspendExecution
-