jcreek.representation
Class ModelChangeEvent
java.lang.Object
java.util.EventObject
jcreek.representation.ModelChangeEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ModelChangeEvent
- extends java.util.EventObject
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ModelChangeEvent(java.lang.Object source,
int changeType)
Creates a a ConceptChangeEvent. |
ModelChangeEvent(java.lang.Object source,
int changeType,
java.lang.Object oldValue,
java.lang.Object newValue)
Creates a a ConceptChangeEvent. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MODEL_NAME_CHANGED
public static final int MODEL_NAME_CHANGED
- See Also:
- Constant Field Values
MODEL_TITLE_CHANGED
public static final int MODEL_TITLE_CHANGED
- See Also:
- Constant Field Values
MODEL_DESC_CHANGED
public static final int MODEL_DESC_CHANGED
- See Also:
- Constant Field Values
MODEL_AUTHOR_CHANGED
public static final int MODEL_AUTHOR_CHANGED
- See Also:
- Constant Field Values
ENTITY_REMOVED
public static final int ENTITY_REMOVED
- See Also:
- Constant Field Values
ENTITY_ADDED
public static final int ENTITY_ADDED
- See Also:
- Constant Field Values
ENTITY_NAME_CHANGED
public static final int ENTITY_NAME_CHANGED
- See Also:
- Constant Field Values
ENTITY_DESC_CHANGED
public static final int ENTITY_DESC_CHANGED
- See Also:
- Constant Field Values
ENTITY_RELATION_ADDED
public static final int ENTITY_RELATION_ADDED
- See Also:
- Constant Field Values
ENTITY_RELATION_REMOVED
public static final int ENTITY_RELATION_REMOVED
- See Also:
- Constant Field Values
ENTITY_DATA_OBJECT_CHANGED
public static final int ENTITY_DATA_OBJECT_CHANGED
- See Also:
- Constant Field Values
RELATION_REMOVED
public static final int RELATION_REMOVED
- See Also:
- Constant Field Values
RELATION_ADDED
public static final int RELATION_ADDED
- See Also:
- Constant Field Values
RELATION_NAME_CHANGED
public static final int RELATION_NAME_CHANGED
- See Also:
- Constant Field Values
RELATION_DESC_CHANGED
public static final int RELATION_DESC_CHANGED
- See Also:
- Constant Field Values
RELATION_VALUE_CHANGED
public static final int RELATION_VALUE_CHANGED
- See Also:
- Constant Field Values
RELATION_FROM_CHANGED
public static final int RELATION_FROM_CHANGED
- See Also:
- Constant Field Values
RELATION_TYPE_CHANGED
public static final int RELATION_TYPE_CHANGED
- See Also:
- Constant Field Values
RELATION_EXPLANTION_STRENGTH_CHANGED
public static final int RELATION_EXPLANTION_STRENGTH_CHANGED
- See Also:
- Constant Field Values
RELATION_TITLE_CHANGED
public static final int RELATION_TITLE_CHANGED
- See Also:
- Constant Field Values
RELATION_OVERRIDE_ADDED
public static final int RELATION_OVERRIDE_ADDED
- See Also:
- Constant Field Values
RELATION_OVERRIDE_REMOVED
public static final int RELATION_OVERRIDE_REMOVED
- See Also:
- Constant Field Values
RELATION_INVERSE_CHANGED
public static final int RELATION_INVERSE_CHANGED
- See Also:
- Constant Field Values
PARTITION_ADDED
public static final int PARTITION_ADDED
- See Also:
- Constant Field Values
PARTITION_REMOVED
public static final int PARTITION_REMOVED
- See Also:
- Constant Field Values
PARTITION_ENTITY_ADDED
public static final int PARTITION_ENTITY_ADDED
- See Also:
- Constant Field Values
PARTITION_ENTITY_REMOVED
public static final int PARTITION_ENTITY_REMOVED
- See Also:
- Constant Field Values
PARTITION_RELATION_ADDED
public static final int PARTITION_RELATION_ADDED
- See Also:
- Constant Field Values
PARTITION_RELATION_REMOVED
public static final int PARTITION_RELATION_REMOVED
- See Also:
- Constant Field Values
PARTITION_NAME_CHANGE
public static final int PARTITION_NAME_CHANGE
- See Also:
- Constant Field Values
type
protected int type
oldValue
protected java.lang.Object oldValue
newValue
protected java.lang.Object newValue
ModelChangeEvent
public ModelChangeEvent(java.lang.Object source,
int changeType,
java.lang.Object oldValue,
java.lang.Object newValue)
- Creates a a ConceptChangeEvent.
- Parameters:
source
- The Entity, Relation or KnowledgeModel object affected by the change.changeType
- The constant representing what kind of change this is.oldValue
- The old value of the variable changed.newValue
- The new value of the variable changed.
ModelChangeEvent
public ModelChangeEvent(java.lang.Object source,
int changeType)
- Creates a a ConceptChangeEvent. This should only be used for add/remove events where
there is no variable having an old and new value.
- Parameters:
source
- The Entity, Relation or KnowledgeModel object affected by the change.changeType
- The constant representing what kind of change this is.
getType
public int getType()
getOldValue
public java.lang.Object getOldValue()
getNewValue
public java.lang.Object getNewValue()
toString
public java.lang.String toString()
Created at IDI, NTNU by the Artificial Intelligence and Learning group