gov.sandia.cognition.framework
Class SemanticIdentifierMapEvent

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

public class SemanticIdentifierMapEvent
extends EventObject

The SemanticIdentifierMapEvent class implements an event object for the SemanticIdentifierMapListener interface to make use of. The events are fired from the SemanticIdentifierMap class.

Since:
1.0
Author:
Justin Basilico
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SemanticIdentifierMapEvent(SemanticIdentifierMap map, SemanticIdentifierMapEventType eventType, SemanticIdentifier identifier)
          Creates a new instance of CognitiveModelStateChangeEvent.
 
Method Summary
 SemanticIdentifierMapEventType getEventType()
          Gets the type of the event.
 SemanticIdentifier getIdentifier()
          Gets the SemanticIdentifier involved in the event.
 SemanticIdentifierMap getMap()
          Gets the SemanticIdentifierMap that the event happened in.
 void setEventType(SemanticIdentifierMapEventType eventType)
          Sets the type of the event.
 void setIdentifier(SemanticIdentifier identifier)
          Sets the SemanticIdentifier involved in the event.
 void setMap(SemanticIdentifierMap map)
          Sets the SemanticIdentifierMap that the event happened in.
 
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

SemanticIdentifierMapEvent

public SemanticIdentifierMapEvent(SemanticIdentifierMap map,
                                  SemanticIdentifierMapEventType eventType,
                                  SemanticIdentifier identifier)
Creates a new instance of CognitiveModelStateChangeEvent.

Parameters:
map - The map that the event happened in.
eventType - The type of event that this is.
identifier - The identifier that caused the event.
Method Detail

getMap

public SemanticIdentifierMap getMap()
Gets the SemanticIdentifierMap that the event happened in.

Returns:
The SemanticIdentifierMap the event happened in.

getEventType

public SemanticIdentifierMapEventType getEventType()
Gets the type of the event.

Returns:
The event type.

getIdentifier

public SemanticIdentifier getIdentifier()
Gets the SemanticIdentifier involved in the event.

Returns:
The SemanticIdentifier involved in the event.

setMap

public void setMap(SemanticIdentifierMap map)
Sets the SemanticIdentifierMap that the event happened in.

Parameters:
map - SemanticIdentifierMap the event happened in.

setEventType

public void setEventType(SemanticIdentifierMapEventType eventType)
Sets the type of the event.

Parameters:
eventType - the event type.

setIdentifier

public void setIdentifier(SemanticIdentifier identifier)
Sets the SemanticIdentifier involved in the event.

Parameters:
identifier - The SemanticIdentifier involved in the event.