Package org.robwork.sdurwsim
Class ThreadSimulatorStepEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.robwork.sdurwsim.ThreadSimulatorStepEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class ThreadSimulatorStepEvent extends java.util.EventObject
This class allows an event based callback implementation forThreadSimulator
.- Since:
- 2013-11-22
- See Also:
ThreadSimulatorStepEventDispatcher
,ThreadSimulatorStepEventListener
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ThreadSimulatorStepEvent(java.lang.Object source, ThreadSimulator threadsimulator, State state)
Create a new event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description State
getState()
ThreadSimulator
getThreadSimulator()
-
-
-
Constructor Detail
-
ThreadSimulatorStepEvent
public ThreadSimulatorStepEvent(java.lang.Object source, ThreadSimulator threadsimulator, State state)
Create a new event.- Parameters:
source
- the object that created this event.threadsimulator
- theThreadSimulator
that makes the callbacks.state
- the newState
after the simulation step.
-
-
Method Detail
-
getThreadSimulator
public ThreadSimulator getThreadSimulator()
- Returns:
- the
ThreadSimulator
that makes the callbacks.
-
-