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
de.rss.fachstudie.MiSim.resources.cpu.ComputationBurstCompletedEvent
public class ComputationBurstCompletedEvent
extends desmoj.core.simulator.ExternalEvent
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
numberOfEntitiesFields inherited from class desmoj.core.simulator.Schedulable
_schedule -
Constructor Summary
Constructors Constructor Description ComputationBurstCompletedEvent(desmoj.core.simulator.Model model, String name, boolean showInTrace, CPUProcess ending_process, CPU owner, int work_done) -
Method Summary
Modifier and Type Method Description voideventRoutine()Methods inherited from class desmoj.core.simulator.ExternalEvent
clone, schedule, schedule, schedule, schedule, scheduleAfter, scheduleBefore, schedulePreemptMethods inherited from class desmoj.core.simulator.EventAbstract
generateTraceForScheduling, getNumberOfEntities, getRealTimeConstraint, getSchedulingPriority, isExternal, setRealTimeConstraint, setSchedulingPriorityMethods 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
-
ComputationBurstCompletedEvent
public ComputationBurstCompletedEvent(desmoj.core.simulator.Model model, String name, boolean showInTrace, CPUProcess ending_process, CPU owner, int work_done)
-
-
Method Details
-
eventRoutine
public void eventRoutine() throws co.paralleluniverse.fibers.SuspendExecution- Specified by:
eventRoutinein classdesmoj.core.simulator.ExternalEvent- Throws:
co.paralleluniverse.fibers.SuspendExecution
-