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 TypeMethodDescriptionbooleancancel()Cancel a thread.Get the simulation.protected voidProcess 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:
cancelin 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:SimulationEventProcess 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:
processEventin classSimulationEvent
-