uk.co.agena.minerva.model.extendedbn
Class ExtendedNodeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by uk.co.agena.minerva.model.extendedbn.ExtendedNodeEvent
All Implemented Interfaces:
java.io.Serializable

public class ExtendedNodeEvent
extends java.util.EventObject

ExtendedNodeEvent is used to notify interested parties that an ExtendedNode has changed in some way. A list of the extended node event types, including the contents of the array passed as part of the event ------------------------------------------------------------------------------------------ VARIABLE_EXPRESSION_NAME_CHANGED array(0) = Variable whose name was changed array(1) = the old name ------------------------------------------------------------------------------------------ NPT_MODE_CHANGED array(0) = Integer, old mode (defined by the EDITABLE_ constants in te extended node class) array(1) = Integer, new mode (defined by the EDITABLE_ constants in te extended node class) ------------------------------------------------------------------------------------------ CHILD_ADDED array(0) = The new child node

See Also:
Serialized Form

Field Summary
static int ATTRIBUTECHANGED_ENTROPYCONVERGENCE
           
static int ATTRIBUTECHANGED_INPUTNODE
           
static int ATTRIBUTECHANGED_OUTPUTNODE
           
static int ATTRIBUTECHANGED_RECALC_REQUIRED
           
static int ATTRIBUTECHANGED_SIMULATIONNODE
           
static int ATTRIBUTECHANGED_THRESHOLDVALUE_DEFINED
           
static int CHILD_ADDED
           
static int EXPRESSION_VARIABLE_CHANGED
           
static int EXTENDED_STATE_ADDED
           
static int EXTENDED_STATE_REMOVED
           
static int NAMEDESCRIPTION_NAME_CHANGED
           
static int NPT_MODE_CHANGED
           
static int PARENT_ADDED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ExtendedNodeEvent(ExtendedNode extendedNode)
          Constructs a new ExtendedNodeEvent.
ExtendedNodeEvent(ExtendedNode extendedNode, DataSet newMarginals)
          Constructs a new ExtendedNodeEvent.
ExtendedNodeEvent(ExtendedNode extendedNode, ExtendedState xExtendedState)
          An event that incapsulates an extendedState which is added/removed.
ExtendedNodeEvent(ExtendedNode extendedNode, int eventType, java.util.List eventAttributes)
          Constructs a new ExtendedNodeEvent for the Node Changed specific event
ExtendedNodeEvent(ExtendedNode extendedNode, java.lang.String errorText)
          Constructs a new ExtendedNodeEvent.
ExtendedNodeEvent(ExtendedNode extendedNode, java.lang.String oldConnNodeId, java.lang.String newConnNodeId)
           
ExtendedNodeEvent(ExtendedNode extendedNode, Variable var)
          An event that incapsulates a Variable which is added/removed.
 
Method Summary
 int getAttributeChanaged()
          Stores the integer value if the attribute changed event was triggered
 DataSet getChangedMarginals()
          Returns the DataSet representing the changed marginals for the event.
 java.lang.String getErrorText()
          Returns the explanatory text that accompanies any error.
 java.util.List getEventAttributes()
           
 int getEventType()
           
 ExtendedState getExtendedState()
          This is the extendedState that is added or removed.
 java.lang.String getNewConnNodeId()
           
 java.lang.String getOldConnNodeId()
           
 Variable getVariable()
          This is the Variable that is added or removed.
 void setAttributeChanaged(int attributeChanaged)
          Stores the integer value if the attribute changed event was triggered
 void setEventAttributes(java.util.List eventAttributes)
           
 void setEventType(int eventType)
           
 
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
 

Field Detail

EXPRESSION_VARIABLE_CHANGED

public static int EXPRESSION_VARIABLE_CHANGED

NAMEDESCRIPTION_NAME_CHANGED

public static int NAMEDESCRIPTION_NAME_CHANGED

NPT_MODE_CHANGED

public static int NPT_MODE_CHANGED

EXTENDED_STATE_ADDED

public static int EXTENDED_STATE_ADDED

EXTENDED_STATE_REMOVED

public static int EXTENDED_STATE_REMOVED

CHILD_ADDED

public static int CHILD_ADDED

PARENT_ADDED

public static int PARENT_ADDED

ATTRIBUTECHANGED_INPUTNODE

public static final int ATTRIBUTECHANGED_INPUTNODE
See Also:
Constant Field Values

ATTRIBUTECHANGED_OUTPUTNODE

public static final int ATTRIBUTECHANGED_OUTPUTNODE
See Also:
Constant Field Values

ATTRIBUTECHANGED_THRESHOLDVALUE_DEFINED

public static final int ATTRIBUTECHANGED_THRESHOLDVALUE_DEFINED
See Also:
Constant Field Values

ATTRIBUTECHANGED_SIMULATIONNODE

public static final int ATTRIBUTECHANGED_SIMULATIONNODE
See Also:
Constant Field Values

ATTRIBUTECHANGED_RECALC_REQUIRED

public static final int ATTRIBUTECHANGED_RECALC_REQUIRED
See Also:
Constant Field Values

ATTRIBUTECHANGED_ENTROPYCONVERGENCE

public static final int ATTRIBUTECHANGED_ENTROPYCONVERGENCE
See Also:
Constant Field Values
Constructor Detail

ExtendedNodeEvent

public ExtendedNodeEvent(ExtendedNode extendedNode)
Constructs a new ExtendedNodeEvent.

Parameters:
extendedNode - the ExtendedNode that generated the event

ExtendedNodeEvent

public ExtendedNodeEvent(ExtendedNode extendedNode,
                         int eventType,
                         java.util.List eventAttributes)
Constructs a new ExtendedNodeEvent for the Node Changed specific event

Parameters:
extendedNode - the ExtendedNode that generated the event

ExtendedNodeEvent

public ExtendedNodeEvent(ExtendedNode extendedNode,
                         DataSet newMarginals)
Constructs a new ExtendedNodeEvent.

Parameters:
extendedNode - the ExtendedNode that generated the event
newMarginals - the DataSet that contains the new marginals for the ExtendedNode.

ExtendedNodeEvent

public ExtendedNodeEvent(ExtendedNode extendedNode,
                         java.lang.String errorText)
Constructs a new ExtendedNodeEvent.

Parameters:
extendedNode - the ExtendedNode that generated the event
errorText - the String to explain the error.

ExtendedNodeEvent

public ExtendedNodeEvent(ExtendedNode extendedNode,
                         ExtendedState xExtendedState)
An event that incapsulates an extendedState which is added/removed.

Parameters:
extendedNode -
xExtendedState -

ExtendedNodeEvent

public ExtendedNodeEvent(ExtendedNode extendedNode,
                         Variable var)
An event that incapsulates a Variable which is added/removed.

Parameters:
extendedNode -
var -

ExtendedNodeEvent

public ExtendedNodeEvent(ExtendedNode extendedNode,
                         java.lang.String oldConnNodeId,
                         java.lang.String newConnNodeId)
Parameters:
en -
oldConnNodeId -
newConnNodeId -
Method Detail

getChangedMarginals

public DataSet getChangedMarginals()
Returns the DataSet representing the changed marginals for the event.

Returns:
the DataSet containing the marginals

getErrorText

public java.lang.String getErrorText()
Returns the explanatory text that accompanies any error.

Returns:
the text

getExtendedState

public ExtendedState getExtendedState()
This is the extendedState that is added or removed.

Returns:

getVariable

public Variable getVariable()
This is the Variable that is added or removed.

Returns:

getNewConnNodeId

public java.lang.String getNewConnNodeId()
Returns:
Returns the newConnNodeId.

getOldConnNodeId

public java.lang.String getOldConnNodeId()
Returns:
Returns the oldConnNodeId.

getAttributeChanaged

public int getAttributeChanaged()
Stores the integer value if the attribute changed event was triggered


setAttributeChanaged

public void setAttributeChanaged(int attributeChanaged)
Stores the integer value if the attribute changed event was triggered


getEventAttributes

public java.util.List getEventAttributes()

setEventAttributes

public void setEventAttributes(java.util.List eventAttributes)

getEventType

public int getEventType()

setEventType

public void setEventType(int eventType)


Copyright © 2006 Agena Ltd. All Rights Reserved.