|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.agena.minerva.model.MarginalDataStore
public class MarginalDataStore
Stores a map of each ExtendedNode to a MarginalDataItemList object.
Field Summary | |
---|---|
static double |
version
|
Fields inherited from interface uk.co.agena.minerva.util.model.Writable |
---|
FIELD_SEPARATOR |
Method Summary | |
---|---|
void |
destroy()
|
MarginalDataItemList |
getMarginalDataItemListForNode(ExtendedBN exBN,
ExtendedNode exNode)
This method will return the first MarginaldataItemList that references the specified node in the specified BN. |
Model |
getModel()
|
java.util.Map |
getNodeMarginalListMap()
|
double |
getVersion()
Returns the version of the class. |
void |
linkUp()
Links the Marginal Data Item Lists to the correct BNs and nodes and then uses the temporary list of MDILs to build the node-list map. |
void |
merge(MarginalDataStore toMerge)
Merges the entries of the specified MarginalDataStore nodeMarginalListMap in to this nodeMarginalListMap. |
void |
modelChanged(ModelEvent ebne)
Called whenever a Model changes. |
void |
modelInconsistentEvidencePropagated(ModelEvent ebne)
Called whenever inconsistent evidence is propagated in one of the ExtendedBNs in a Model. |
void |
modelPropagationFinished(ModelEvent me,
boolean completionSuccessful)
Called whenever the propagation has finished. |
void |
modelPropagationStarting(ModelEvent me)
Called whenever the propagation is about to start. |
int |
read(java.util.List strings,
int currentLineNumber)
|
void |
removeAllDataForNode(ExtendedBN exBN,
ExtendedNode exNode)
Removes all items in the MDS related to the supplied node. |
void |
setModel(Model model)
|
void |
setVersion(double version)
Sets the version number of the class. |
java.util.List |
startDataCollection(boolean onlyModifiedBns,
java.util.List specifiedExtendedBNs)
This method will restart the data collections store. |
void |
validateMarginalDataStoreAgainstModel()
This method will validate the marginal data store against the connected model. |
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
Method Detail |
---|
public double getVersion()
Writable
getVersion
in interface Writable
public void setVersion(double version)
Writable
setVersion
in interface Writable
version
- the version numberpublic Model getModel()
public void setModel(Model model)
public java.util.Map getNodeMarginalListMap()
public void modelInconsistentEvidencePropagated(ModelEvent ebne)
ModelListener
modelInconsistentEvidencePropagated
in interface ModelListener
ebne
- the event encapsulating the inconsistent evidence propagationpublic void modelChanged(ModelEvent ebne)
ModelListener
modelChanged
in interface ModelListener
ebne
- the event encapsulating the changepublic void validateMarginalDataStoreAgainstModel()
public java.util.List startDataCollection(boolean onlyModifiedBns, java.util.List specifiedExtendedBNs)
onlyModifiedBns
- specifiedExtendedBNs
- public MarginalDataItemList getMarginalDataItemListForNode(ExtendedBN exBN, ExtendedNode exNode)
exBN
- The extended BN that the node resides inexNode
- The extendedNode for which the marginalDataItem is required
public void removeAllDataForNode(ExtendedBN exBN, ExtendedNode exNode)
public void modelPropagationStarting(ModelEvent me)
ModelListener
modelPropagationStarting
in interface ModelListener
public void modelPropagationFinished(ModelEvent me, boolean completionSuccessful)
ModelListener
modelPropagationFinished
in interface ModelListener
completionSuccessful
- TODOpublic void destroy()
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
public void linkUp() throws ExtendedBNNotFoundException, ExtendedNodeNotFoundException
ExtendedBNNotFoundException
ExtendedNodeNotFoundException
public void merge(MarginalDataStore toMerge)
toMerge
- The MarginalDataStore whose nodeMarginalListMap we want to merge.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |