org.jactr.tools.async.message.event.state
Class RuntimeStateEvent

java.lang.Object
  extended by org.jactr.tools.async.message.BaseMessage
      extended by org.jactr.tools.async.message.event.state.RuntimeStateEvent
All Implemented Interfaces:
java.io.Serializable, IEvent, IRuntimeStateEvent, IStateEvent, IMessage

public class RuntimeStateEvent
extends BaseMessage
implements IRuntimeStateEvent, java.io.Serializable

Author:
developer
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jactr.tools.async.message.event.state.IStateEvent
IStateEvent.State
 
Constructor Summary
RuntimeStateEvent(java.util.Collection<org.jactr.core.model.IModel> models, double simulationTime)
           
RuntimeStateEvent(java.lang.Exception exception, double simulationTime)
           
RuntimeStateEvent(IStateEvent.State state, double simulationTime)
           
 
Method Summary
 java.lang.String getException()
           
 java.util.Collection<java.lang.String> getModelNames()
          valid for started events only
 double getSimulationTime()
           
 IStateEvent.State getState()
           
 long getSystemTime()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jactr.tools.async.message.BaseMessage
getID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jactr.tools.async.message.IMessage
getID
 

Constructor Detail

RuntimeStateEvent

public RuntimeStateEvent(IStateEvent.State state,
                         double simulationTime)

RuntimeStateEvent

public RuntimeStateEvent(java.util.Collection<org.jactr.core.model.IModel> models,
                         double simulationTime)

RuntimeStateEvent

public RuntimeStateEvent(java.lang.Exception exception,
                         double simulationTime)
Method Detail

getState

public IStateEvent.State getState()
Specified by:
getState in interface IStateEvent

getException

public java.lang.String getException()
Specified by:
getException in interface IRuntimeStateEvent

getModelNames

public java.util.Collection<java.lang.String> getModelNames()
Description copied from interface: IRuntimeStateEvent
valid for started events only

Specified by:
getModelNames in interface IRuntimeStateEvent
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSimulationTime

public double getSimulationTime()
Specified by:
getSimulationTime in interface IStateEvent
See Also:
org.jactr.tools.async.message.command.state.IStateCommand#getSimulationTime()

getSystemTime

public long getSystemTime()
Specified by:
getSystemTime in interface IStateEvent
See Also:
org.jactr.tools.async.message.command.state.IStateCommand#getSystemTime()