gov.sandia.cognition.framework
Class CognitiveModelStateChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gov.sandia.cognition.framework.CognitiveModelStateChangeEvent
All Implemented Interfaces:
Serializable

public class CognitiveModelStateChangeEvent
extends EventObject

The CognitiveModelStateChangeEvent class is an EventObject that contains the data pertaining to a change in the state of a CognitiveModel.

Since:
1.0
Author:
Justin Basilico, Kevin R. Dixon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CognitiveModelStateChangeEvent(CognitiveModel model, CognitiveModelState state)
          Creates a new instance of CognitiveModelStateChangeEvent.
 
Method Summary
 CognitiveModel getModel()
          Gets the model that changed state.
 CognitiveModelState getState()
          Gets the new state of the model.
protected  void setModel(CognitiveModel model)
          Sets the model that changed.
protected  void setState(CognitiveModelState state)
          Sets the new state of the model.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CognitiveModelStateChangeEvent

public CognitiveModelStateChangeEvent(CognitiveModel model,
                                      CognitiveModelState state)
Creates a new instance of CognitiveModelStateChangeEvent.

Parameters:
model - The model that changed.
state - The new state of the model.
Method Detail

getModel

public CognitiveModel getModel()
Gets the model that changed state.

Returns:
The CognitiveModel that changed

getState

public CognitiveModelState getState()
Gets the new state of the model.

Returns:
The new state of the model

setModel

protected void setModel(CognitiveModel model)
Sets the model that changed.

Parameters:
model - The model the event is for

setState

protected void setState(CognitiveModelState state)
Sets the new state of the model.

Parameters:
state - The new state of the model