jcreek.representation
Class ModelChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjcreek.representation.ModelChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class ModelChangeEvent
extends java.util.EventObject

See Also:
Serialized Form

Field Summary
static int ENTITY_ADDED
           
static int ENTITY_DATA_OBJECT_CHANGED
           
static int ENTITY_DESC_CHANGED
           
static int ENTITY_NAME_CHANGED
           
static int ENTITY_RELATION_ADDED
           
static int ENTITY_RELATION_REMOVED
           
static int ENTITY_REMOVED
           
static int MODEL_AUTHOR_CHANGED
           
static int MODEL_DESC_CHANGED
           
static int MODEL_NAME_CHANGED
           
static int MODEL_TITLE_CHANGED
           
protected  java.lang.Object newValue
           
protected  java.lang.Object oldValue
           
static int PARTITION_ADDED
           
static int PARTITION_ENTITY_ADDED
           
static int PARTITION_ENTITY_REMOVED
           
static int PARTITION_NAME_CHANGE
           
static int PARTITION_RELATION_ADDED
           
static int PARTITION_RELATION_REMOVED
           
static int PARTITION_REMOVED
           
static int RELATION_ADDED
           
static int RELATION_DESC_CHANGED
           
static int RELATION_EXPLANTION_STRENGTH_CHANGED
           
static int RELATION_FROM_CHANGED
           
static int RELATION_INVERSE_CHANGED
           
static int RELATION_NAME_CHANGED
           
static int RELATION_OVERRIDE_ADDED
           
static int RELATION_OVERRIDE_REMOVED
           
static int RELATION_REMOVED
           
static int RELATION_TITLE_CHANGED
           
static int RELATION_TYPE_CHANGED
           
static int RELATION_VALUE_CHANGED
           
protected  int type
           
 
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.
 
Method Summary
 java.lang.Object getNewValue()
           
 java.lang.Object getOldValue()
           
 int getType()
           
 java.lang.String toString()
           
 
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
 

Field Detail

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
Constructor Detail

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.
Method Detail

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