|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.agena.minerva.model.MarginalDataItemList
public class MarginalDataItemList
Stores a List of MarginalDataItems which are cleared & created before a propagation is started. Each MarginalDataItem in the list corresponds to a different Scenario.
Field Summary | |
---|---|
static double |
version
|
Fields inherited from interface uk.co.agena.minerva.util.model.Writable |
---|
FIELD_SEPARATOR |
Constructor Summary | |
---|---|
MarginalDataItemList()
Empty constructor |
|
MarginalDataItemList(ExtendedBN exBN,
ExtendedNode exNode)
Empty constructor |
Method Summary | |
---|---|
void |
destroy()
Cleans up objects. |
void |
extendedBNAboutToBePropagated(ExtendedBNEvent ebne)
Event invoked by the connected extended Bn if it is about to propagate. |
void |
extendedBNAllEvidenceRetracted(ExtendedBNEvent ebne)
Invoked by any extended BN's that this class is listening to, event prompts the listener that the extended BN has had all its eveidence retracted |
void |
extendedBNConnBNNotFound(ExtendedBNEvent ebne)
Currently empty. |
void |
extendedBNIDChanged(ExtendedBNEvent ebne)
Invoked whenever the ID for the ExtendedBN is changed. |
void |
extendedBNInconsistentEvidencePropagated(ExtendedBNEvent ebne)
Event fired by the extended BN if the last propagation caused inconsistant evidence to be propagated. |
void |
extendedBNNameDescriptionChanged(ExtendedBNEvent ebne)
Currently empty. |
void |
extendedBNPropagated(ExtendedBNEvent ebne)
Invoked by any extended BN's that this class is listening to, event prompts the listener that the extended BN has been propagated |
void |
extendedNodeAboutToBeCut(ExtendedBNEvent ebne,
ExtendedBN sourceEXBN,
int targetEXNodeID,
int sourceEXNodeID,
java.lang.String oldSourceName)
This event is fired when an ExtendedNode has been pasted to the destination ExtendedBN and is about to be cut from the specified source ExtendedBN. |
void |
extendedNodeAdded(ExtendedBNEvent ebne,
ExtendedNode exNode)
This event is fired when ever a new node has been added to the extendedBN |
void |
extendedNodeEventFired(ExtendedBNEvent ebne,
ExtendedNodeEvent ene,
java.lang.String eventName)
Event received from the extended BN Invoked whenever the extended BN recieves a BN Node event, this event throws the event up to any listeners on the extended BN. |
void |
extendedNodePasted(ExtendedBNEvent ebne,
ExtendedBN sourceEXBN,
ExtendedNode sourceNode,
ExtendedNode exNode)
This event is fired when an extended node is pasted into the extended BN |
void |
extendedNodeRemoved(ExtendedBNEvent ebne,
ExtendedNode exNode)
This event is fired when an extended node is removed from the extended BN |
void |
extendedNodeReplaced(ExtendedBNEvent ebne,
ExtendedNode oldNode,
ExtendedNode newNode,
ExtendedBN ebn)
This event is fired whenever a node is replaced with another one. |
ExtendedBN |
getExBN()
|
ExtendedNode |
getExNode()
|
int |
getExtendedBNID()
|
int |
getExtendedNodeID()
|
java.lang.String |
getLabel()
|
MarginalDataItem |
getMarginalDataItemAtIndex(int index)
Returns the MarginalDataItem at the specified index in the list. |
java.util.List |
getMarginalDataItems()
|
double |
getVersion()
Returns the version of the class. |
int |
read(java.util.List strings,
int currentLineNumber)
|
void |
rollbackToLastMarginalDataItems()
This method will replace the current marginal data item with the previous one. |
void |
setExBN(ExtendedBN exBN)
|
void |
setExNode(ExtendedNode exNode)
|
void |
setExtendedBNID(int extendedBNID)
|
void |
setExtendedNodeID(int extendedNodeID)
|
void |
setLabel(java.lang.String label)
|
void |
setVersion(double version)
Sets the version number of the class. |
void |
startDataCollection(java.util.List scenarios)
for each of the scenarios it creates a MarginalDataItem |
java.util.List |
write()
Writes the object in question to a List of Strings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double version
Constructor Detail |
---|
public MarginalDataItemList()
public MarginalDataItemList(ExtendedBN exBN, ExtendedNode exNode)
Method Detail |
---|
public ExtendedBN getExBN()
public double getVersion()
Writable
getVersion
in interface Writable
public void setVersion(double version)
Writable
setVersion
in interface Writable
version
- the version numberpublic void setExBN(ExtendedBN exBN)
public MarginalDataItem getMarginalDataItemAtIndex(int index)
index
- the index of the required MarginalDataItem
public java.util.List getMarginalDataItems()
public int getExtendedBNID()
public void setExtendedBNID(int extendedBNID)
public int getExtendedNodeID()
public void setExtendedNodeID(int extendedNodeID)
public void destroy()
public ExtendedNode getExNode()
public void setExNode(ExtendedNode exNode)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public void extendedBNNameDescriptionChanged(ExtendedBNEvent ebne)
extendedBNNameDescriptionChanged
in interface ExtendedBNListener
ebne
- the event encapsulating information about the changepublic void extendedBNConnBNNotFound(ExtendedBNEvent ebne)
extendedBNConnBNNotFound
in interface ExtendedBNListener
ebne
- the event encapsulating information about the changepublic void extendedBNIDChanged(ExtendedBNEvent ebne)
ExtendedBNListener
extendedBNIDChanged
in interface ExtendedBNListener
ebne
- the event encapsulating information about the changepublic void extendedBNPropagated(ExtendedBNEvent ebne)
extendedBNPropagated
in interface ExtendedBNListener
ebne
- The Extended BN eventpublic void extendedBNAllEvidenceRetracted(ExtendedBNEvent ebne)
extendedBNAllEvidenceRetracted
in interface ExtendedBNListener
ebne
- The Extended BN eventpublic void extendedBNInconsistentEvidencePropagated(ExtendedBNEvent ebne)
extendedBNInconsistentEvidencePropagated
in interface ExtendedBNListener
ebne
- public void extendedBNAboutToBePropagated(ExtendedBNEvent ebne)
extendedBNAboutToBePropagated
in interface ExtendedBNListener
ebne
- public void startDataCollection(java.util.List scenarios)
scenarios
- public void rollbackToLastMarginalDataItems()
public void extendedNodeEventFired(ExtendedBNEvent ebne, ExtendedNodeEvent ene, java.lang.String eventName)
extendedNodeEventFired
in interface ExtendedBNListener
ebne
- Tne Extended Bn that fired the eventene
- The extended Node that fired the event, caught by the BNeventName
- The name of the extendedBN node event.public void extendedNodeRemoved(ExtendedBNEvent ebne, ExtendedNode exNode)
ExtendedBNListener
extendedNodeRemoved
in interface ExtendedBNListener
public void extendedNodeAdded(ExtendedBNEvent ebne, ExtendedNode exNode)
extendedNodeAdded
in interface ExtendedBNListener
ebne
- The extended BN from which the event was firedexNode
- The extended node which was added to the extended BNpublic void extendedNodeReplaced(ExtendedBNEvent ebne, ExtendedNode oldNode, ExtendedNode newNode, ExtendedBN ebn)
ExtendedBNListener
extendedNodeReplaced
in interface ExtendedBNListener
ebne
- The extended BN from which the event was firedoldNode
- the old nodenewNode
- the new nodeebn
- the BN containing both nodespublic void extendedNodePasted(ExtendedBNEvent ebne, ExtendedBN sourceEXBN, ExtendedNode sourceNode, ExtendedNode exNode)
ExtendedBNListener
extendedNodePasted
in interface ExtendedBNListener
sourceNode
- the node that was copiedexNode
- the newly cloned nodepublic void extendedNodeAboutToBeCut(ExtendedBNEvent ebne, ExtendedBN sourceEXBN, int targetEXNodeID, int sourceEXNodeID, java.lang.String oldSourceName)
extendedNodeAboutToBeCut
in interface ExtendedBNListener
ebne
- Holds the destination/target ExtendedBN.sourceEXBN
- The ExtendedBN the ExtendedNode is about to be cut from.targetEXNodeID
- The ID of the ExtendedNode which has been pasted to the ExtendedBN in the specified event.sourceEXNodeID
- The ID of the ExtendedNode which is about to be cut from the specified ExtendedBN.oldSourceName
- The short name description of the soruce node before any updated were made to allow
the node to be added to the destination ExtendedBN.public java.util.List write() throws MinervaReadWriteException
Writable
write
in interface Writable
MinervaReadWriteException
- if therepublic int read(java.util.List strings, int currentLineNumber) throws MinervaReadWriteException
read
in interface Writable
MinervaReadWriteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |