Class ComputationCompletedEvent

java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.EventAbstract
desmoj.core.simulator.Event<Request>
cambio.simulator.resources.cpu.ComputationCompletedEvent

public class ComputationCompletedEvent extends desmoj.core.simulator.Event<Request>
Marks the end of the last computation burst of a thread.

On execution, it resubmits the computed request at its handler.

Author:
Lion Wagner
See Also:
  • Field Summary

    Fields inherited from class desmoj.core.simulator.EventAbstract

    numberOfEntities

    Fields inherited from class desmoj.core.simulator.Schedulable

    _schedule
  • Constructor Summary

    Constructors
    Constructor
    Description
    ComputationCompletedEvent(desmoj.core.simulator.Model model, String name, boolean showInTrace)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class desmoj.core.simulator.Event

    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, 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

    • ComputationCompletedEvent

      public ComputationCompletedEvent(desmoj.core.simulator.Model model, String name, boolean showInTrace)
  • Method Details

    • eventRoutine

      public void eventRoutine(Request request) throws co.paralleluniverse.fibers.SuspendExecution
      Specified by:
      eventRoutine in class desmoj.core.simulator.Event<Request>
      Throws:
      co.paralleluniverse.fibers.SuspendExecution