java.lang.Object
org.bzdev.devqsim.SimulationEvent
org.bzdev.devqsim.TaskSimulationEvent
org.bzdev.devqsim.TaskThreadSimEvent
- All Implemented Interfaces:
Comparable<SimulationEvent>
Simulation event for task threads.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
Cancel a thread.Get the simulation.protected void
Process an event.Methods inherited from class org.bzdev.devqsim.SimulationEvent
compareTo, getSource, getStackTraceArray, getTime, isCanceled, isPending, setStackTraceArray
-
Method Details
-
cancel
public boolean cancel()Cancel a thread.- Overrides:
cancel
in classSimulationEvent
- Returns:
- true if the task can be canceled; false otherwise.
-
getSimulation
Get the simulation.- Returns:
- the simulation
-
processEvent
protected void processEvent()Description copied from class:SimulationEvent
Process an event. This method will be invoked by the simulation scheduler when the event should occur. Subclasses must implement it if any processing is to occur.- Specified by:
processEvent
in classSimulationEvent
-