|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
uk.co.agena.minerva.model.extendedbn.ExtendedNodeEvent
public class ExtendedNodeEvent
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
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 |
---|
public static int EXPRESSION_VARIABLE_CHANGED
public static int NAMEDESCRIPTION_NAME_CHANGED
public static int NPT_MODE_CHANGED
public static int EXTENDED_STATE_ADDED
public static int EXTENDED_STATE_REMOVED
public static int CHILD_ADDED
public static int PARENT_ADDED
public static final int ATTRIBUTECHANGED_INPUTNODE
public static final int ATTRIBUTECHANGED_OUTPUTNODE
public static final int ATTRIBUTECHANGED_THRESHOLDVALUE_DEFINED
public static final int ATTRIBUTECHANGED_SIMULATIONNODE
public static final int ATTRIBUTECHANGED_RECALC_REQUIRED
public static final int ATTRIBUTECHANGED_ENTROPYCONVERGENCE
Constructor Detail |
---|
public ExtendedNodeEvent(ExtendedNode extendedNode)
extendedNode
- the ExtendedNode that generated the eventpublic ExtendedNodeEvent(ExtendedNode extendedNode, int eventType, java.util.List eventAttributes)
extendedNode
- the ExtendedNode that generated the eventpublic ExtendedNodeEvent(ExtendedNode extendedNode, DataSet newMarginals)
extendedNode
- the ExtendedNode that generated the eventnewMarginals
- the DataSet that contains the new marginals for
the ExtendedNode.public ExtendedNodeEvent(ExtendedNode extendedNode, java.lang.String errorText)
extendedNode
- the ExtendedNode that generated the eventerrorText
- the String to explain the error.public ExtendedNodeEvent(ExtendedNode extendedNode, ExtendedState xExtendedState)
extendedNode
- xExtendedState
- public ExtendedNodeEvent(ExtendedNode extendedNode, Variable var)
extendedNode
- var
- public ExtendedNodeEvent(ExtendedNode extendedNode, java.lang.String oldConnNodeId, java.lang.String newConnNodeId)
en
- oldConnNodeId
- newConnNodeId
- Method Detail |
---|
public DataSet getChangedMarginals()
public java.lang.String getErrorText()
public ExtendedState getExtendedState()
public Variable getVariable()
public java.lang.String getNewConnNodeId()
public java.lang.String getOldConnNodeId()
public int getAttributeChanaged()
public void setAttributeChanaged(int attributeChanaged)
public java.util.List getEventAttributes()
public void setEventAttributes(java.util.List eventAttributes)
public int getEventType()
public void setEventType(int eventType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |