|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.agena.minerva.model.MarginalDataItem
public class MarginalDataItem
A MarginalDataItem captures all the marginal information for an ExtendedNode for a given scenario. It holds the raw probability data as a DataSet. It also stores various summary statistics.
Field Summary | |
---|---|
static double |
version
|
Fields inherited from interface uk.co.agena.minerva.util.model.Writable |
---|
FIELD_SEPARATOR |
Constructor Summary | |
---|---|
MarginalDataItem()
|
|
MarginalDataItem(java.lang.String scenarioName)
Empty constructor |
Method Summary | |
---|---|
void |
extendedBNAboutToBePropagated(ExtendedNode enode,
java.lang.String[] callSigns)
Event invoked by the connected extended Bn if it is about to propagate. |
void |
extendedBNAllEvidenceRetracted(ExtendedNode enode,
java.lang.String[] callSigns)
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 |
extendedBNInconsistentEvidencePropagated()
Event fired by the extended BN if the last propagation caused inconsistant evidence to be propagated. |
void |
extendedBNPropagated(ExtendedNode enode,
java.lang.String[] callSigns)
Invoked by any extended BN's that this class is listening to, event prompts the listener that the extended BN has been propagated |
java.lang.String |
getCallSignToUpdateOn()
This attribute is matched against the call sign passed during a propagation event invoked by the connected extended BN. |
double |
getConfidenceInterval()
|
DataSet |
getDataset()
|
double |
getLowerPercentile()
|
double |
getMeanValue()
|
double |
getMedianValue()
|
double |
getPercentileValue()
|
java.lang.String |
getScenarioName()
|
double |
getStandardDeviationValue()
|
double |
getUpperPercentile()
|
double |
getVarianceValue()
|
double |
getVersion()
Returns the version of the class. |
boolean |
isOnlyUpdateOnMatchedCallSign()
Attribute determines whether an update is only called when the call sign in the propagate event is matched to the call sign in the MDI, or if the uodate occurs on every occassion |
boolean |
isUpdateOnAllEvidenceRetracted()
this attribute determines whether the monitors should update when it recieves a all evidence retracted event from the connected extended BN. |
boolean |
isVisible()
This attribute defines whether the results of the marginal data item should be made visible to the user (currently restricted to the visibility of the marginal plot on the monitors) |
int |
read(java.util.List strings,
int currentLineNumber)
|
void |
setCallSignToUpdateOn(java.lang.String callSignToUpdateOn)
This attribute is matched against the call sign passed during a propagation event invoked by the connected extended BN. |
void |
setConfidenceInterval(double confidnceInterval)
|
void |
setDataset(DataSet dataset)
|
void |
setOnlyUpdateOnMatchedCallSign(boolean onlyUpdateOnMatchedCallSign)
Attribute determines whether an update is only called when the call sign in the propagate event is matched to the call sign in the MDI, or if the uodate occurs on every occassion |
void |
setScenarioName(java.lang.String scenarioName)
|
void |
setUpdateOnAllEvidenceRetracted(boolean updateOnAllEvidenceRetracted)
this attribute determines whether the monitors should update when it recieves a all evidence retracted event from the connected extended BN. |
void |
setVersion(double version)
Sets the version number of the class. |
void |
setVisible(boolean visible)
This attribute defines whether the results of the marginal data item should be made visible to the user (currently restricted to the visibility of the marginal plot on the monitors) |
void |
updateDataSet(ExtendedNode exNode)
invoked when a propagation or retraction event (depending on how the data item is set up). |
void |
updateStats(ExtendedNode exNode)
extracts the stats from the connected node if they are available |
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 MarginalDataItem()
public MarginalDataItem(java.lang.String scenarioName)
Method Detail |
---|
public double getVersion()
Writable
getVersion
in interface Writable
public void setVersion(double version)
Writable
setVersion
in interface Writable
version
- the version numberpublic void updateDataSet(ExtendedNode exNode)
public void updateStats(ExtendedNode exNode)
public DataSet getDataset()
public void setDataset(DataSet dataset)
public double getMeanValue()
public double getPercentileValue()
public double getLowerPercentile()
public double getUpperPercentile()
public double getConfidenceInterval()
public void setConfidenceInterval(double confidnceInterval)
public double getMedianValue()
public boolean isVisible()
public void setVisible(boolean visible)
public boolean isUpdateOnAllEvidenceRetracted()
public void setUpdateOnAllEvidenceRetracted(boolean updateOnAllEvidenceRetracted)
public java.lang.String getCallSignToUpdateOn()
public void setCallSignToUpdateOn(java.lang.String callSignToUpdateOn)
public boolean isOnlyUpdateOnMatchedCallSign()
public void setOnlyUpdateOnMatchedCallSign(boolean onlyUpdateOnMatchedCallSign)
public void extendedBNPropagated(ExtendedNode enode, java.lang.String[] callSigns)
public void extendedBNAllEvidenceRetracted(ExtendedNode enode, java.lang.String[] callSigns)
public void extendedBNAboutToBePropagated(ExtendedNode enode, java.lang.String[] callSigns)
public void extendedBNInconsistentEvidencePropagated()
public double getStandardDeviationValue()
public double getVarianceValue()
public java.lang.String getScenarioName()
public void setScenarioName(java.lang.String scenarioName)
scenarioName
- The scenarioName to set.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 |