Package edu.cmu.tetrad.session
Class SessionEvent
java.lang.Object
java.util.EventObject
edu.cmu.tetrad.session.SessionEvent
- All Implemented Interfaces:
- Serializable
Notifies a listener that some change has occurred in the session--a node has
 been added or removed, an edge has been added or removed, a model has been
 created or destroyed.
- Author:
- Joseph Ramsey
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionSessionEvent(Object source, int type) Constructs an event where one session node is involved--session node added or removed, model created or destroyed.SessionEvent(Object source, SessionEvent event) Creates a new SessionEvent with the same information as the given event but with a new source.SessionEvent(Object source, SessionNode node, int type) Constructs an event where one session node is involved--session node added or removed, model created or destroyed.SessionEvent(Object source, SessionNode parent, SessionNode child, int type) Constructs an event where two session nodes are involved--parent added or removed.
- 
Method SummaryMethods inherited from class java.util.EventObjectgetSource, toString
- 
Field Details- 
NODE_ADDEDpublic static final int NODE_ADDED- See Also:
 
- 
NODE_REMOVEDpublic static final int NODE_REMOVED- See Also:
 
- 
PARENT_ADDEDpublic static final int PARENT_ADDED- See Also:
 
- 
PARENT_REMOVEDpublic static final int PARENT_REMOVED- See Also:
 
- 
MODEL_CREATEDpublic static final int MODEL_CREATED- See Also:
 
- 
MODEL_DESTROYEDpublic static final int MODEL_DESTROYED- See Also:
 
- 
MODEL_UNCLEARpublic static final int MODEL_UNCLEAR- See Also:
 
- 
EXECUTION_STARTEDpublic static final int EXECUTION_STARTED- See Also:
 
- 
REPETITION_CHANGEDpublic static final int REPETITION_CHANGED- See Also:
 
- 
ADDING_EDGEpublic static final int ADDING_EDGE- See Also:
 
 
- 
- 
Constructor Details- 
SessionEventConstructs an event where one session node is involved--session node added or removed, model created or destroyed.
- 
SessionEventConstructs an event where one session node is involved--session node added or removed, model created or destroyed.
- 
SessionEventConstructs an event where two session nodes are involved--parent added or removed.
- 
SessionEventCreates a new SessionEvent with the same information as the given event but with a new source.
 
- 
- 
Method Details- 
getNode- Returns:
- the session node set, if this event was constructed using one session node.
 
- 
getParent- Returns:
- the parent session node set, if this is an event constructed using two session nodes.
 
- 
getChild- Returns:
- the child session node set, if this is an event constructed using two session nodes
 
- 
getTypepublic int getType()- Returns:
- the type of this event--one of NODE_ADDED, NODE_REMOVED, PARENT_ADDED, PARENT_REMOVED, MODEL_CREATED, MODEL_DESTROYED, MODEL_UNCLEAR.
 
 
-