|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.agena.minerva.model.extendedbn.ExtendedNode
public abstract class ExtendedNode
An ExtendedNode corresponds to a node in an underlying BN. It contains a List of ExtendedStates and adds extra information to the node such as a more detailed name and description.
Currently, each ExtendedNode has a reference to a CoreBN which it gets from its parent ExtendedBN during construction. The reason for this is that all operations on the underlying BN or its nodes must be called on the core BN. There is no concept of a core Node.
An ExtendedNode must currently be one of three types: an LabelledEN, an AboluteExtendedNode or an ContinuousIntervalEN
Note: this class has a natural ordering that is inconsistent with equals.
Field Summary | |
---|---|
protected int |
actOnMarginalsChangedEvent
This is the number of times that this object will act on a Marginals changed event. |
protected boolean |
answerable
Whether the ExtendedNode should have a connected Question. |
protected uk.co.agena.minerva.model.corebn.CoreBN |
connBn
A reference to an underlying CoreBN. |
protected boolean |
connectableInputNode
Defines whether the node is a possible input node for an ExtendedBN. |
protected boolean |
connectableOutputNode
Defines whether the node is a possible output node for an ExtendedBN. |
protected java.lang.String |
connNodeId
The ID of the connected node in the underlying BN (which will a String rather than an Integer). |
static int |
CONTINUOUS_INTERVAL_E_N
Constant corresponding to the ContinuousIntervalEN type. |
static java.lang.String |
CURRENT_FUNCTION_STRING
Used to indicate function data members that are "current". |
protected ExtendedNodeFunction |
currentNodeFunction
The current function specified across the entire NPT for this node. |
protected java.lang.String |
currentParentModelNodeAltId
Only used during loading and saving, so that current model node information can be stored. |
protected java.util.List |
currentPartitionedModelNodeFunctions
The current functions specified for each state combination of the node's parents. |
protected java.lang.String |
currentPartitionedParentModelNodeAltIds
Only used during loading and saving, so that current model node information can be stored. |
protected java.util.List |
currentPartitionedParentModelNodes
The current model (parent) nodes for the node functions. |
static java.lang.String |
DEFAULT_FUNCTION_STRING
Used to indicate function data members that are "default". |
protected ExtendedNodeFunction |
defaultNodeFunction
The original function specified across the entire NPT for this node. |
protected java.lang.String |
defaultParentModelNodeAltId
Only used during loading and saving, so that default model node information can be stored. |
protected java.util.List |
defaultPartitionedModelNodeFunctions
The current functions specified for each state combination of the node's parents. |
protected java.lang.String |
defaultPartitionedParentModelNodeAltIds
Only used during loading and saving, so that default model node information can be stored. |
protected java.util.List |
defaultPartitionedParentModelNodes
The original model (parent) nodes for the node functions. |
protected static double |
DELTA
This is the delta value we use when comparing equality between probabilities. |
static int |
DISCRETE_REAL_E_N
Constant corresponding to the DiscreteRealEN type. |
static int |
EDITABLE_NODE_FUNCTION
If the ExtendedNode's functionMode has this value, it will have null values for parentState function objects. |
static int |
EDITABLE_NPT
If the ExtendedNode's functionMode has this value, it will have null values for all function objects. |
static int |
EDITABLE_PARENT_STATE_FUNCTIONS
If the ExtendedNode's functionMode has this value, it will have null values for node function objects. |
protected java.util.List |
extendedStates
The ExtendedStates contained in the ExtendedNode. |
protected int |
functionMode
Indicates whether this node has any functions specified for it along with the basic NPT. |
protected int |
id
The unique integer ID for the ExtendedNode. |
protected boolean |
inputNodeReceivedMarginals
Flag to inform us if this node is an Input Node, then has it received its new Marginals via a Message Pass. |
static int |
LABELLED_E_N
Constant corresponding to the LabelledEN type. |
protected NameDescription |
name
The name of the ExtendedNode. |
protected boolean |
nptReCalcRequired
This is a flag to monitor if the NPT needs to be Re-Calculated at any point in time. |
protected boolean |
nptSynchronisedWithFormula
This is a flag to monitor if the npt is correct with respect to the formula entered. |
static int |
NUMERICAL_E_N
Constant corresponding to the NumericalEN type. |
static int |
PROBS_NOT_EDITABLE
If the ExtendedNode's functionMode has this value, its probability values cannot be edited at all. |
protected boolean |
reportable
Whether the ExtendedNode should be reported on. |
protected static java.lang.String[] |
supportedFunctionTypes
|
protected double |
targetValue
A threshold value for the node that can be used to represent an upper or lower limit on the node's value about which warning should be given. |
protected boolean |
targetValuePresent
This indicates whether a target value is currently valid for a node. |
static double |
version
|
protected boolean |
visible
Whether the ExtendedNode should be displayed in an application. |
Fields inherited from interface uk.co.agena.minerva.util.model.Writable |
---|
FIELD_SEPARATOR |
Constructor Summary | |
---|---|
ExtendedNode()
Default constructor. |
|
ExtendedNode(NameDescription name,
uk.co.agena.minerva.model.corebn.CoreBN connBn)
Constructs an ExtendedNode with the specified name and connected BN. |
|
ExtendedNode(NameDescription name,
java.lang.String connNodeId,
uk.co.agena.minerva.model.corebn.CoreBN connBn)
Constructs an ExtendedNode with the specified name, connected node ID and connected BN. |
Method Summary | |
---|---|
boolean |
addChild(ExtendedNode childNode)
Call this to add a child to an ExtendedNode, this connects the core nodes, then updated the parent list in this object and the function type. |
Variable |
addExpressionVariable(java.lang.String name,
double defaultValue)
Adds a new Variable to the VariableList with the specified name and default value. |
void |
addExtendedNodeListener(ExtendedNodeListener enl)
Adds an object interested in ExtendedNodeEvents to the List of ExtendedNodeListeners (actually held by an internal ExtendedNodeEventGenerator). |
void |
addExtendedState(ExtendedState extendedState,
boolean autoAssignId)
Adds an ExtendedState to this ExtendedNode's List of ExtendedStates. |
void |
addExtendedState(ExtendedState extendedState,
boolean autoAssignId,
int position)
Adds an ExtendedState to this ExtendedNode's List of ExtendedStates. |
void |
addExtendedStates(java.util.List states,
int index,
boolean autoAssignId)
Adds the supplied states at the specified index in the list. |
void |
addParent(ExtendedNode parentNode)
Call this to add a parent to an ExtendedNode, this connects the core nodes, then updated tha parent list in this object and the function type. |
void |
cloneTypeSpecific(ExtendedNode oldEXN)
Empty method which can be overridden by subclass ExtendedNodes so data specific to that type can be cloned. |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
abstract void |
configureDefaultExtendedStates()
Configures a default set of ExtendedStates for a node. |
protected java.lang.String |
constructExtraFieldString()
This should be overridden by any subclass of ExtendedNode that has additional fields that need to be written out. |
boolean |
containsFunctionOfType(java.lang.String functionDisplayName)
|
boolean |
containsOnlyStatisticalFunctions()
Looks at the node's function or functions and returns true if there are only statistical (i.e. |
ExtendedNode |
copy(java.lang.Class type)
Creates a shallow copy of this ExtendedNode by copying references to all of its data into a new instance of the supplied node type. |
protected DataPoint |
createDataPointFromExtendedState(ExtendedState es,
double value)
Creates a DataPoint using information in the supplied ExtendedState. |
abstract DataSet |
createDataSetForExtendedStates()
Create a DatsSet from the Extended States of this node. |
abstract java.util.List |
createExtendedStates(DataSet ds)
Takes the supplied DataSet and uses it to generate a List of ExtendedStates which are then returned. |
abstract ExtendedState |
createNewExtendedState(int index)
Creates a new ExtendedState, all the way to the core. |
void |
cropFunctions()
In the case where there are partitioned expressions, this method makes sure that the number of current and default functions is the same size as the number expected based up on the number of state combinations of the model parent nodes. |
void |
enterDistributionOfEvidence(DataSet distribution,
boolean propagate)
Enters evidence on this ExtendedNode in the form of a distribution of likelihoods across all ExtendedStates. |
void |
enterDistributionOfEvidence(DataSet distribution,
boolean propagate,
DataSet datasetToShow)
Enters evidence on this ExtendedNode in the form of a distribution of likelihoods across all ExtendedStates. |
void |
enterHardEvidence(int stateId,
boolean propagate)
Enters evidence on this node to indicate that the ExtendedState specified has been selected. |
void |
enterHardEvidence(int stateId,
boolean propagate,
boolean useClosestMedian)
Enters evidence on this node to indicate that the ExtendedState specified has been selected. |
void |
extendedNodeAttributeChanged(ExtendedNodeEvent ene,
int attribute)
Called when selected attributes of the node are changed. |
void |
extendedNodeConnBNNotFound(ExtendedNodeEvent ene)
This method is not implemented - it is an empty stub to ensure compliance with the ExtendedNodeListener interface. |
void |
extendedNodeConnNodeIdChanged(ExtendedNodeEvent ene)
No action needed when the ConnNodeId of an ExtendedNode is changed. |
void |
extendedNodeInconsistentEvidenceEntered(ExtendedNodeEvent ene)
This method is not implemented - it is an empty stub to ensure compliance with the ExtendedNodeListener interface. |
void |
extendedNodeMarginalsChanged(ExtendedNodeEvent ene,
boolean useMarginalDataSetForStateReplication)
Called whenever the marginals for a particular node have changed. |
void |
extendedNodeNameDescriptionChanged(ExtendedNodeEvent ene)
This method is not implemented - it is an empty stub to ensure compliance with the ExtendedNodeListener interface. |
void |
extendedNodeStateNameChanged(ExtendedNodeEvent ene,
ExtendedState es)
Dont need to do anything if one of its states have changed their names. |
void |
extendedNodeStatesReplaced(ExtendedNodeEvent ene)
Called when the node's states are replaced. |
void |
extendedNodeVariableAdded(ExtendedNodeEvent ene,
Variable addedVarible)
Invoked when a Variable is added to the ExtendedNodes VariableList. |
void |
extendedNodeVariableRemoved(ExtendedNodeEvent ene,
Variable removedVarible)
Invoked when a Variable is removed from the ExtendedNodes VariableList. |
void |
extendedNodeVisibleAttributeChanged(ExtendedNodeEvent ene,
boolean visible)
Invoked when an ExtendedNode visible attribute is changed. |
void |
extendedStateAdded(ExtendedNodeEvent ene)
New ExtendedState created and added to this node and added all the way to the core. |
void |
extendedStateNameDescriptionChanged(ExtendedStateEvent ene)
Listens to the extendedstate to see if they fire an event that their name has changed. |
void |
extendedStateRemoved(ExtendedNodeEvent ene,
int indexOfStateRemoved)
ExtendedNode removed from this node and all the way to the core. |
protected void |
fireMarginalsChangedEvent()
Called by an ExtendedBN when either propagation or retraction is called, because this node's marginals may have changed. |
int |
getActOnMarginalsChangedEvent()
|
boolean |
getAnswerable()
Returns whether the ExtendedNode is answerable. |
static java.lang.String |
getConcreteNodeName(java.lang.Class type)
Given the class of a node type, the user-friendly name of the node type is returned. |
static java.lang.Class |
getConcreteNodeType(java.lang.String name)
Given the user-friendly name of a node type, the actual class of the node type is returned. |
static java.lang.String[] |
getConcreteNodeTypeNames()
Returns the user-friendly names of all node types that are concrete i.e. |
uk.co.agena.minerva.model.corebn.CoreBN |
getConnBn()
Gets the underlying BN to which this ExtendedNode is connected. |
java.lang.String |
getConnNodeId()
Returns the ID of the underlying connected node. |
protected uk.co.agena.minerva.model.corebn.CoreBNNodeList |
getCoreBNNodeEquivalents(java.util.List extendedNodes)
|
ExtendedNodeFunction |
getCurrentNodeFunction()
Gets the current node function for this ExtendedNode. |
java.lang.String |
getCurrentParentModelNodeAltId()
|
java.util.List |
getCurrentPartitionedModelNodeFunctions()
|
java.lang.String |
getCurrentPartitionedParentModelNodeAltIds()
|
java.util.List |
getCurrentPartitionedParentModelNodes()
|
ExtendedNodeFunction |
getDefaultNodeFunction()
Gets the default node function for this ExtendedNode. |
java.lang.String |
getDefaultParentModelNodeAltId()
|
java.util.List |
getDefaultPartitionedModelNodeFunctions()
|
java.lang.String |
getDefaultPartitionedParentModelNodeAltIds()
|
java.util.List |
getDefaultPartitionedParentModelNodes()
|
ExtendedNodeFunction |
getExpression()
Gets the name of the expression for this node. |
VariableList |
getExpressionVariables()
|
ExtendedState |
getExtendedState(int id)
Returns the ExtendedState with the specified ID. |
ExtendedState |
getExtendedStateAtIndex(int index)
Returns the state at the supplied index in the list. |
java.util.List |
getExtendedStates()
Returns a list of all the ExtendedStates contained in this ExtendedNode. |
java.lang.String[] |
getExtendedStateShortNames()
Returns an array of the short names of all ExtendedStates. |
ExtendedState |
getExtendedStateWithName(java.lang.String name)
Returns the state with the supplied name. |
ExtendedState |
getExtendedStateWithShortDesc(java.lang.String shortDesc)
Returns the ExtendedState with the specified Short NameDescription. |
int |
getFunctionMode()
Returns the function mode for this ExtendedNode. |
ExtendedState |
getHardEvidence()
This method will return an ExtendedState in which there is hard evidence. |
int |
getId()
Returns the unique ID of the ExtendedNode. |
DataSet |
getInputNodeRecivedMarginalsAsEvidenceDS()
|
int |
getLastSavedPriorIndex()
Returns the index of the last saved priors |
DataSet |
getMarginals()
Returns the marginal probabilities for the node in the form of a DataSet. |
NameDescription |
getName()
Returns the name of the ExtendedNode. |
protected int |
getNextExtendedStateId()
Finds the next available ID to assign to an ExtendeNode based on the IDs of those currently in the ExtendedBN's List. |
int |
getNodeType()
Returns the type of this ExtendedNode. |
Notes |
getNotes()
Returns the note object for the node |
float[][] |
getNPT()
Returns the NPT of this node as a 2D array of floats. |
java.util.List |
getNPTPopulationMethodAsString()
returns a list of strings that represent the NPT editing mode (and function list if suitable) |
int |
getNPTSize(java.util.List parentNodes)
This method calculates the expected size of its NPT using its parents' state sizes. |
int |
getNumberOfStateCombsForModelNodes(int type)
Returns the number of state combinations for the parent model nodes of this node. |
java.util.List |
getPartitionedExpressionModelNodes()
Returns the partitioned expression model nodes currently defined on this node. |
java.util.List |
getPartitionedExpressions()
Returns the partitioned expressions currently defined on this node. |
boolean |
getReportable()
Returns whether the ExtendedNode can be reported on. |
float[] |
getRowMajorNPT()
Returns the NPT of the underlying node in the CoreBN as a row major array of probabilities. |
abstract java.lang.Object |
getSamplesForState(int index,
boolean boundsOnly)
Returns a set of values that are sampled from the state at the supplied index. |
DataSetGrouping |
getSavedPriors()
|
double |
getScaledTargetValue()
Normalises the ExtendedStates so that the first one has the value 0, the next has value 1 and so on. |
java.util.List |
getSuitableMessagePassingNodes(java.util.List targetNodes)
Searches through the supplied List and returns a List of ExtendedNodes that have the same number of ExtendedStates. |
java.lang.String[] |
getSupportedFunctionTypes()
Returns a list of the function classes supported by this node type. |
double |
getTargetValue()
Returns the target value for this ExtendedNode. |
java.lang.String |
getTargetValueAsString()
Returns the target value as a String. |
Range |
getTargetValueRange(boolean scaleInfinities)
Gets the Range in which the target value can lie. |
java.lang.String |
getTargetValueRangeAsString()
Returns the target value range as a String for displaying to a system user. |
protected int |
getTotalNumberOfExtendedFunctions()
Calculates the total number of functions in use. |
double |
getVersion()
Returns the version of the class. |
boolean |
getVisible()
Returns whether the ExtendedNode is visible. |
boolean |
hasParents()
Indicates whether this ExtendedNode has any parents. |
boolean |
isChangeStatesOnInputNodeIfRequired()
|
boolean |
isConnectableInputNode()
Returns whether this ExtendedNode is a potential input node. |
boolean |
isConnectableOutputNode()
Returns whether this ExtendedNode is a potential output node. |
boolean |
isInputNodeReceivedMarginals()
|
boolean |
isInputNodeRecivedMarginalsAsEvidence()
|
boolean |
isNptReCalcRequired()
This is a flag to monitor if the NPT needs to be Re-Calculated at any point in time. |
boolean |
isNptSynchronisedWithFormula()
|
boolean |
isTargetValuePresent()
Indicates whether a target value is present for this ExtendedNode. |
boolean |
isTemporaryNodeOrderFlag()
|
java.util.List |
mode()
Calculates the mode of the marginals for this ExtendedNode. |
void |
nodeChanged(ExtendedNodeEvent ene)
Called whenever a node changes (for selected events) |
protected void |
processExtraFields(java.util.StringTokenizer extraFields,
double localVersion)
This should be overridden by any subclass of ExtendedNode that has additional fields that need to be read in. |
int |
read(java.util.List strings,
int currentLineNumber)
|
void |
recalculateConnStateIndices()
|
void |
removeAllFurtherSavedPriors(int removeAllFromThisIndex)
Reomves the priors stored at the given index and all subsequent priors too. |
void |
removeExpressionVariable(Variable v)
Removes the specified Variable from the VariableList if it is a Member of this ExtendedNodes VariableList. |
void |
removeExtendedNodeListener(ExtendedNodeListener enl)
Removes an object no longer interested in ExtendedNodeEvents from the List of ExtendedNodeListeners (actually held by an internal ExtendedNodeEventGenerator). |
int |
removeExtendedState(int extendedStateId)
Removes the ExtendedState with the specified ID from the ExtendedNode's List. |
abstract java.util.List |
replaceState(int index,
int numDivisions)
Takes the state at the specified index and replaces it with the required number of new states. |
void |
replicateNodeStates(ExtendedNode states2copyNode)
This method will take the states from the argument extended node and copy them to this node. |
int |
revert2savedPrior(int savedIndex)
Sets the NPT for the node to the savedPrior at the given index if it exists. |
void |
savePrior()
Add the current marginals of this node as saved priors (before touchTable or setNPT is called). |
void |
setActOnMarginalsChangedEvent(int actOnMarginalsChangedEvent)
|
void |
setAnswerable(boolean answerable)
Sets whether the ExtendedNode is answerable. |
void |
setChangeStatesOnInputNodeIfRequired(boolean changeStatesOnInputNodeIfRequired)
|
void |
setConnBn(uk.co.agena.minerva.model.corebn.CoreBN connBn)
Sets the underlying BN to which this ExtendedNode is connected. |
void |
setConnectableInputNode(boolean connectableInputNode)
Sets whether this ExtendedNode is a potential input node. |
void |
setConnectableOutputNode(boolean connectableOutputNode)
Sets whether this ExtendedNode is a potential output node. |
void |
setConnNodeId(java.lang.String connNodeId)
|
void |
setCurrentNodeFunction(ExtendedNodeFunction currentNodeFunction)
Sets the current node function for this ExtendedNode. |
void |
setCurrentParentModelNodeAltId(java.lang.String currentParentModelNodeAltId)
|
void |
setCurrentPartitionedModelNodeFunctions(java.util.List currentPartitionedModelNodeFunctions)
|
void |
setCurrentPartitionedParentModelNodeAltIds(java.lang.String currentPartitionedParentModelNodeAltIds)
|
void |
setCurrentPartitionedParentModelNodes(java.util.List currentPartitionedParentModelNodes)
|
void |
setDefaultNodeFunction(ExtendedNodeFunction defaultNodeFunction)
Sets the default node function for this ExtendedNode. |
void |
setDefaultParentModelNodeAltId(java.lang.String defaultParentModelNodeAltId)
|
void |
setDefaultPartitionedModelNodeFunctions(java.util.List defaultPartitionedModelNodeFunctions)
|
void |
setDefaultPartitionedParentModelNodeAltIds(java.lang.String defaultPartitionedParentModelNodeAltIds)
|
void |
setDefaultPartitionedParentModelNodes(java.util.List defaultPartitionedParentModelNodes)
|
void |
setExpression(ExtendedNodeFunction expression)
Sets the expression on this node. |
void |
setExpressionVariables(VariableList expressionVariables)
|
void |
setExtendedStates(java.util.List extendedStates)
|
void |
setExtendedStates(java.util.List extendedStates,
boolean autoAssignIds)
Reinitialises the ExtendedNode's List of ExtendedStates with those in the supplied List. |
void |
setFunctionMode(int functionMode)
Sets the function mode of this ExtendedNode. |
void |
setId(int id)
Sets the unique ID of the ExtendedNode to the ID specified. |
void |
setInputNodeReceivedMarginals(boolean inputNodeReceivedMarginals)
|
void |
setInputNodeRecivedMarginalsAsEvidence(boolean inputNodeRecivedMarginalsAsEvidence)
|
void |
setInputNodeRecivedMarginalsAsEvidenceDS(DataSet inputNodeRecivedMarginalsAsEvidenceDS)
|
void |
setName(NameDescription name)
Sets the name of the ExtendedNode to the name specified. |
void |
setNotes(Notes notes)
Sets the note object of the node |
void |
setNPT(double[] npt)
Sets the NPT of a node with no parents. |
void |
setNPT(double[][] npt,
java.util.List orderedParents)
Sets the NPT of a node with parents. |
void |
setNPT(double[][] npt,
java.util.List orderOfParents,
boolean imitateNewEvidence)
Sets the NPT of the underyling nod ein the CoreBN using the supplied two-dimensional array of probabilities. |
void |
setNPTForSingleModelParentNode(double[][] partialNPT,
ExtendedNode modelParentNode,
boolean imitateNewEvidence)
This is used to set a NPT on this node if the NPT has only been generated for a single parent node as a model node. |
void |
setNptReCalcRequired(boolean nptReCalcRequired)
This is a flag to monitor if the NPT needs to be Re-Calculated at any point in time. |
void |
setNptSynchronisedWithFormula(boolean nptSynchronisedWithFormulea)
|
void |
setPartitionedExpressionModelNodes(java.util.List modelNodes)
Sets the partitioned expression model nodes on this node. |
void |
setPartitionedExpressions(java.util.List expressions)
Sets the partitioned expressions on this node. |
void |
setReportable(boolean reportable)
Sets whether the ExtendedNode can be reported on or not. |
void |
setSavedPriors(DataSetGrouping savedPriors)
|
void |
setTargetValue(double targetValue)
Sets the target value for this ExtendedNode. |
void |
setTargetValueFromString(java.lang.String text)
Sets the target value using the supplied String. |
void |
setTargetValuePresent(boolean targetValuePresent)
Sets whether the target value is present or not. |
void |
setTemporaryNodeOrderFlag(boolean temporaryNodeOrderFlag)
|
void |
setupActionForMarginalsChangedEvent(int noOfPassesAllowed,
boolean forceSetOfNPT,
boolean savePrior,
boolean changeStatesOnInputNodeIfRequired)
This configures the ExtendedNode so that it reacts correctly when it receives a MarginalsChangedEvent. |
void |
setVersion(double version)
Sets the version number of the class. |
void |
setVisible(boolean visible)
Sets whether the ExtendedNode is visible. |
protected void |
storeFunctionsCorrectly(java.util.List temporaryFunctions,
double version)
Stores the supplied List of functions in their correct fields within the ExtendedNode object. |
java.lang.String |
toString()
|
protected void |
updateConnNodeId(java.lang.String newConnNodeId)
Updates the ID of the underlying connected node. |
void |
updateExpressionVariable(Variable v,
java.lang.String newName,
double newDefaultValue)
Updates the specified Variable to have the new Name and Default Value. |
void |
updateFunctionsParentConnNodeId(java.lang.String oldConnNodeId,
java.lang.String newConnNodeId)
Need to update the Functions in the ExtendedNodeFunction of this node. |
protected void |
updateFunctionType(uk.co.agena.minerva.model.corebn.CoreBN connBn,
java.lang.String connNodeId)
Updated the tyope of function that can be added to this node dependant on the parent configurstion. |
boolean |
usedInCurrentExpression(java.lang.String s)
Check the parameters of the current Expression(s) for the occurance of the String s, which must be as a whole word/variable. |
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, wait, wait, wait |
Field Detail |
---|
protected static java.lang.String[] supportedFunctionTypes
public static double version
protected uk.co.agena.minerva.model.corebn.CoreBN connBn
protected int id
protected NameDescription name
protected java.lang.String connNodeId
protected boolean visible
protected boolean answerable
protected boolean reportable
protected java.util.List extendedStates
protected int actOnMarginalsChangedEvent
protected static final double DELTA
public static final int DISCRETE_REAL_E_N
public static final int CONTINUOUS_INTERVAL_E_N
public static final int NUMERICAL_E_N
public static final int LABELLED_E_N
public static final int PROBS_NOT_EDITABLE
public static final int EDITABLE_NPT
public static final int EDITABLE_NODE_FUNCTION
public static final int EDITABLE_PARENT_STATE_FUNCTIONS
public static final java.lang.String CURRENT_FUNCTION_STRING
public static final java.lang.String DEFAULT_FUNCTION_STRING
protected boolean connectableInputNode
protected boolean inputNodeReceivedMarginals
protected boolean connectableOutputNode
protected double targetValue
protected boolean targetValuePresent
protected int functionMode
protected boolean nptSynchronisedWithFormula
protected boolean nptReCalcRequired
protected ExtendedNodeFunction defaultNodeFunction
protected ExtendedNodeFunction currentNodeFunction
protected java.lang.String currentParentModelNodeAltId
protected java.lang.String defaultParentModelNodeAltId
protected java.util.List currentPartitionedParentModelNodes
protected java.util.List defaultPartitionedParentModelNodes
protected java.lang.String currentPartitionedParentModelNodeAltIds
protected java.lang.String defaultPartitionedParentModelNodeAltIds
protected java.util.List currentPartitionedModelNodeFunctions
protected java.util.List defaultPartitionedModelNodeFunctions
Constructor Detail |
---|
public ExtendedNode()
public ExtendedNode(NameDescription name, uk.co.agena.minerva.model.corebn.CoreBN connBn) throws ExtendedBNException
name
- the name of the ExtendedNodeconnBn
- a reference to the underlying BN
ExtendedBNException
public ExtendedNode(NameDescription name, java.lang.String connNodeId, uk.co.agena.minerva.model.corebn.CoreBN connBn) throws ExtendedBNException
name
- the name of the ExtendedNodeconnNodeId
- the ID of the connected node in the underlying BN.connBn
- a reference to the underlying BN
ExtendedBNException
Method Detail |
---|
public static java.lang.String[] getConcreteNodeTypeNames()
public static java.lang.Class getConcreteNodeType(java.lang.String name)
name
- the name of the node type
public static java.lang.String getConcreteNodeName(java.lang.Class type)
type
- the class of the node type
protected void updateFunctionType(uk.co.agena.minerva.model.corebn.CoreBN connBn, java.lang.String connNodeId) throws ExtendedBNException
connBn
- connNodeId
-
ExtendedBNException
public void addParent(ExtendedNode parentNode) throws ExtendedBNException
parentNode
-
ExtendedBNException
public boolean addChild(ExtendedNode childNode) throws ExtendedBNException
childNode
-
ExtendedBNException
public Variable addExpressionVariable(java.lang.String name, double defaultValue) throws ExtendedBNException
name
- The String Name for the new VariabledefaultValue
- The double default value for the new Variable
ExtendedBNException
public void removeExpressionVariable(Variable v) throws ExtendedBNException
name
- The Variable to be removed
ExtendedBNException
public void updateExpressionVariable(Variable v, java.lang.String newName, double newDefaultValue) throws ExtendedBNException
v
- The Variable that is to be updatednewName
- The New Name for the VariablenewDefaultValue
- The New Default Value for the Variable
ExtendedBNException
public boolean usedInCurrentExpression(java.lang.String s)
s
- The String we are looking for.
public int getId()
getId
in interface Identifiable
public void setId(int id)
id
- the new ID for the ExtendedNodepublic NameDescription getName()
getName
in interface Nameable
public void setName(NameDescription name)
setName
in interface Nameable
name
- the new name for the ExtendedNodepublic java.lang.String getConnNodeId()
protected void updateConnNodeId(java.lang.String newConnNodeId) throws uk.co.agena.minerva.model.corebn.CoreBNNodeNotFoundException, ExtendedBNException
connNodeId
- the ID of the connected node
uk.co.agena.minerva.model.corebn.CoreBNNodeNotFoundException
ExtendedBNException
public void setConnNodeId(java.lang.String connNodeId)
public boolean getVisible()
public void setVisible(boolean visible)
visible
- whether the ExtendedNode is visiblepublic boolean getReportable()
public void setReportable(boolean reportable)
reportable
- whether the ExtendedNode is reportablepublic double getTargetValue()
public void setTargetValue(double targetValue)
targetValue
- the new target value for this ExtendedNodepublic boolean getAnswerable()
public void setAnswerable(boolean answerable)
answerable
- whether the ExtendedNode is answerablepublic boolean isConnectableInputNode()
public void setConnectableInputNode(boolean connectableInputNode)
connectableInputNode
- whether this ExtendedNode is a potential input nodepublic boolean isConnectableOutputNode()
public void setConnectableOutputNode(boolean connectableOutputNode)
connectableOutputNode
- whether this ExtendedNode is a potential output nodepublic boolean hasParents() throws ExtendedBNException
ExtendedBNException
- if there is a problem accessing the underlying node in the CoreBNpublic uk.co.agena.minerva.model.corebn.CoreBN getConnBn()
public void setConnBn(uk.co.agena.minerva.model.corebn.CoreBN connBn)
connBn
- the connected BN implementationpublic ExtendedNodeFunction getDefaultNodeFunction()
public void setDefaultNodeFunction(ExtendedNodeFunction defaultNodeFunction)
defaultNodeFunction
- the default node function for this ExtendedNodepublic ExtendedNodeFunction getCurrentNodeFunction()
public void setCurrentNodeFunction(ExtendedNodeFunction currentNodeFunction)
currentNodeFunction
- the current node function for this ExtendedNodepublic ExtendedNodeFunction getExpression()
public void setExpression(ExtendedNodeFunction expression)
expression
- the expression for this nodepublic java.util.List getPartitionedExpressions()
public void setPartitionedExpressions(java.util.List expressions)
name
- parameters
- public java.util.List getPartitionedExpressionModelNodes()
public void setPartitionedExpressionModelNodes(java.util.List modelNodes)
name
- parameters
- public Notes getNotes()
public void setNotes(Notes notes)
notes
- public VariableList getExpressionVariables()
public void setExpressionVariables(VariableList expressionVariables)
public int getFunctionMode()
public void setFunctionMode(int functionMode)
functionMode
- one of the following: PROBS_NOT_EDITABLE, EDITABLE_NPT,
EDITABLE_NODE_FUNCTION or EDITABLE_PARENT_STATE_FUNCTIONSpublic java.util.List getNPTPopulationMethodAsString()
public double getScaledTargetValue() throws ExtendedBNException
The default implementation of this method does little work since the states are assumed already to have numerical values that begin at 0. However, it is overridden in subclasses.
ExtendedBNException
- if there is a problem accessing or scaling the target value (only
thrown in selected subclasses)public java.util.List getExtendedStates()
public java.lang.String[] getExtendedStateShortNames()
public ExtendedState getExtendedStateAtIndex(int index)
index
- the index of the required state
public ExtendedState getExtendedStateWithName(java.lang.String name)
name
- the name of the required state
public ExtendedState getExtendedState(int id) throws ExtendedStateNotFoundException
id
- the ID of the required ExtendedState
ExtendedStateNotFoundException
- if an ExtendedState with the specified ID does not exist in this
ExtendedNodepublic ExtendedState getExtendedStateWithShortDesc(java.lang.String shortDesc) throws ExtendedStateNotFoundException
shortDesc
- the short NameDescription of the required ExtendedState
ExtendedStateNotFoundException
- if an ExtendedState with the specified Short NameDescription does
not exist in this ExtendedNodepublic void addExtendedState(ExtendedState extendedState, boolean autoAssignId)
extendedState
- the ExtendedState to be addedautoAssignId
- whether the ID should be reassigned or notpublic void addExtendedState(ExtendedState extendedState, boolean autoAssignId, int position)
extendedState
- the ExtendedState to be addedautoAssignId
- whether the ID should be reassigned or notpublic abstract ExtendedState createNewExtendedState(int index) throws ExtendedNodeMethodNotSupportedException, ExtendedBNException
index
-
ExtendedBNException
MinervaRangeException
ExtendedNodeMethodNotSupportedException
public abstract void configureDefaultExtendedStates() throws ExtendedStateException
ExtendedStateException
public void setExtendedStates(java.util.List extendedStates, boolean autoAssignIds)
extendedStates
- the new List of ExtendedStatesautoAssignIds
- whether the IDs should be reassignedpublic int removeExtendedState(int extendedStateId) throws ExtendedNodeMethodNotSupportedException, ExtendedBNException
extendedStateId
- the ID of the ExtendedState to be removed
ExtendedStateNotFoundException
- if an ExtendedState with the specified ID does not exist
ExtendedNodeMethodNotSupportedException
ExtendedBNException
public void enterHardEvidence(int stateId, boolean propagate) throws ExtendedBNException
stateId
- the ID of the ExtendedState that has been selectedpropagate
- whether the evidence should be propagated immediately or not
ExtendedBNException
- if there is a problem entering the hard evidencepublic void enterHardEvidence(int stateId, boolean propagate, boolean useClosestMedian) throws ExtendedBNException
stateId
- the ID of the ExtendedState that has been selectedpropagate
- whether the evidence should be propagated immediately or notuseClosestMedian
- If inconsistent evidence is entered using the hard evidence state,
then the closest median state is used.
ExtendedBNException
- if there is a problem entering the hard evidencepublic void enterDistributionOfEvidence(DataSet distribution, boolean propagate) throws ExtendedBNException
In the event that the values of all DataPoints in the DataSet do not add up to 1, they are normalised by the underlying BN.
distribution
- a DataSet containing the distributed evidencepropagate
- whether the evidence should be propagated immediately or not
ExtendedBNException
- if a problem is encountered when entering evidencepublic void enterDistributionOfEvidence(DataSet distribution, boolean propagate, DataSet datasetToShow) throws ExtendedBNException
In the event that the values of all DataPoints in the DataSet do not add up to 1, they are normalised by the underlying BN.
distribution
- a DataSet containing the distributed evidencepropagate
- whether the evidence should be propagated immediately or notdatasetToShow
- the DataSet that should be shown after propagation (if not the
marginals)
ExtendedBNException
- if a problem is encountered when entering evidencepublic DataSet getMarginals() throws ExtendedBNException
ExtendedStateNumberingException
- if the ExtendedNode does not have the same number of states as
its connected node in the underlying BN
ExtendedBNException
public java.lang.String toString()
toString
in class java.lang.Object
public void replicateNodeStates(ExtendedNode states2copyNode) throws ExtendedBNException
states2copyNode
-
ExtendedBNException
protected DataPoint createDataPointFromExtendedState(ExtendedState es, double value) throws ExtendedBNException
es
- the ExtendedState used to construct the DataPointvalue
- the probability value associated with the ExtendedState for
storing in the DataPoint
ExtendedBNException
- if there is a problem creating the DataPoint (only thrown in
selected subclasses)protected void fireMarginalsChangedEvent() throws ExtendedBNException
ExtendedBNException
- if there is a problem with getting the marginals when firing the
MarginalsChangedEventpublic void setupActionForMarginalsChangedEvent(int noOfPassesAllowed, boolean forceSetOfNPT, boolean savePrior, boolean changeStatesOnInputNodeIfRequired) throws ExtendedBNException
noOfPassesAllowed
- the number of passes allowedforceSetOfNPT
- whether the NPT should be forced to updatesavePrior
- if true, the priors will be saved now; if false, they will not
ExtendedBNException
- if there is a problem encountered when saving the priorspublic void savePrior() throws ExtendedBNException
ExtendedBNException
- if there is a problem getting the marginals from the underlying
nodepublic int revert2savedPrior(int savedIndex) throws ExtendedBNException
savedIndex
- the index of the priors that should be used for reverting
ExtendedBNException
public int getLastSavedPriorIndex()
public void removeAllFurtherSavedPriors(int removeAllFromThisIndex) throws ExtendedBNException
removeAllFromThisIndex
- the index where priors should be removed from
ExtendedBNException
public void addExtendedNodeListener(ExtendedNodeListener enl)
enl
- the interested ExtendedNodeListenerpublic void removeExtendedNodeListener(ExtendedNodeListener enl)
enl
- the interested ExtendedNodeListenerprotected int getNextExtendedStateId()
public void extendedNodeNameDescriptionChanged(ExtendedNodeEvent ene)
ene
- public void extendedNodeInconsistentEvidenceEntered(ExtendedNodeEvent ene)
extendedNodeInconsistentEvidenceEntered
in interface ExtendedNodeListener
ene
- public void extendedNodeConnBNNotFound(ExtendedNodeEvent ene)
extendedNodeConnBNNotFound
in interface ExtendedNodeListener
ene
- public void extendedStateAdded(ExtendedNodeEvent ene)
extendedStateAdded
in interface ExtendedNodeListener
ene
- public void extendedStateRemoved(ExtendedNodeEvent ene, int indexOfStateRemoved)
extendedStateRemoved
in interface ExtendedNodeListener
ene
- public void extendedNodeStateNameChanged(ExtendedNodeEvent ene, ExtendedState es)
extendedNodeStateNameChanged
in interface ExtendedNodeListener
ene
- es
- public void extendedNodeAttributeChanged(ExtendedNodeEvent ene, int attribute)
extendedNodeAttributeChanged
in interface ExtendedNodeListener
ene
- attribute
- public void extendedNodeConnNodeIdChanged(ExtendedNodeEvent ene)
extendedNodeConnNodeIdChanged
in interface ExtendedNodeListener
ExtendedNodeListener.extendedNodeConnNodeIdChanged(uk.co.agena.minerva.model.extendedbn.ExtendedNodeEvent)
public void extendedNodeVisibleAttributeChanged(ExtendedNodeEvent ene, boolean visible)
ExtendedNodeListener
extendedNodeVisibleAttributeChanged
in interface ExtendedNodeListener
public void extendedNodeStatesReplaced(ExtendedNodeEvent ene)
ExtendedNodeListener
extendedNodeStatesReplaced
in interface ExtendedNodeListener
public void extendedNodeMarginalsChanged(ExtendedNodeEvent ene, boolean useMarginalDataSetForStateReplication)
extendedNodeMarginalsChanged
in interface ExtendedNodeListener
ene
- the event indicating the changeuseMarginalDataSetForStateReplication
- This should be true if the event has been called manually, because
outputnode wont still have the states it had when it finished
propagating.public void extendedNodeVariableAdded(ExtendedNodeEvent ene, Variable addedVarible)
extendedNodeVariableAdded
in interface ExtendedNodeListener
ene
- The ExtendedNode event.addedVarible
- The Variable that was added.public void extendedNodeVariableRemoved(ExtendedNodeEvent ene, Variable removedVarible)
extendedNodeVariableRemoved
in interface ExtendedNodeListener
ene
- The ExtendedNode event.removedVarible
- The Variable that was removed.public void nodeChanged(ExtendedNodeEvent ene)
nodeChanged
in interface ExtendedNodeListener
ebne
- the event encapsulating the changepublic java.util.List mode() throws ExtendedBNException
ExtendedBNException
public ExtendedState getHardEvidence() throws ExtendedBNException
ExtendedBNException
- if there is a problem accessing the underlying marginalspublic int getNodeType()
public float[] getRowMajorNPT() throws ExtendedBNException
ExtendedBNException
- if there is a problem compiling the underlying CoreBN or
retrieving the NPT.public float[][] getNPT() throws ExtendedBNException
ExtendedBNException
public java.util.List getSuitableMessagePassingNodes(java.util.List targetNodes)
targetNodes
-
public void setNPT(double[][] npt, java.util.List orderOfParents, boolean imitateNewEvidence) throws ExtendedBNException
npt
- a two-dimensional array of probabilitiesimitateNewEvidence
- TODO
ExtendedBNException
- if there is a problem setting the NPTpublic void setNPT(double[] npt) throws ExtendedBNException
npt
- a one-dimensional array of probabilities
ExtendedBNException
- if there is a problem setting the NPTpublic void setNPT(double[][] npt, java.util.List orderedParents) throws ExtendedBNException
npt
- a two-dimensional array of probabilitiesorderedParents
- an order list of the node's parents to indicate how the table
should be constructed
ExtendedBNException
- if there is a problem setting the NPTpublic void setNPTForSingleModelParentNode(double[][] partialNPT, ExtendedNode modelParentNode, boolean imitateNewEvidence) throws ExtendedBNException
partialNPT
- modelParentNode
- imitateNewEvidence
- TODO
ExtendedBNException
public Range getTargetValueRange(boolean scaleInfinities) throws ExtendedBNException
ExtendedBNException
- if there is a problem creating the Range.public java.lang.String getTargetValueRangeAsString() throws ExtendedBNException
ExtendedBNException
- if there is a problem accessing the Range (only thrown in
selectedpublic java.lang.String getTargetValueAsString()
public void setTargetValueFromString(java.lang.String text)
text
- the String used for setting the target valuepublic boolean isTargetValuePresent()
public void setTargetValuePresent(boolean targetValuePresent)
targetValuePresent
- whether the target value is present or notpublic void extendedStateNameDescriptionChanged(ExtendedStateEvent ene)
extendedStateNameDescriptionChanged
in interface ExtendedStateListener
ene
- public java.util.List getCurrentPartitionedModelNodeFunctions()
public void setCurrentPartitionedModelNodeFunctions(java.util.List currentPartitionedModelNodeFunctions)
currentPartitionedModelNodeFunctions
- The currentPartitionedModelNodeFunctions to set.public java.util.List getCurrentPartitionedParentModelNodes()
public int getNumberOfStateCombsForModelNodes(int type)
type
- either ExtendedNodeFunction.CURRENT_TYPE or
ExtendedNodeFunction.DEFAULT_TYPE
public void cropFunctions()
public void setCurrentPartitionedParentModelNodes(java.util.List currentPartitionedParentModelNodes)
currentPartitionedParentModelNodes
- The currentPartitionedParentModelNodes to set.public java.util.List getDefaultPartitionedModelNodeFunctions()
public void setDefaultPartitionedModelNodeFunctions(java.util.List defaultPartitionedModelNodeFunctions)
defaultPartitionedModelNodeFunctions
- The defaultPartitionedModelNodeFunctions to set.public java.util.List getDefaultPartitionedParentModelNodes()
public void setDefaultPartitionedParentModelNodes(java.util.List defaultPartitionedParentModelNodes)
defaultPartitionedParentModelNodes
- The defaultPartitionedParentModelNodes to set.public boolean containsOnlyStatisticalFunctions()
public boolean containsFunctionOfType(java.lang.String functionDisplayName)
protected int getTotalNumberOfExtendedFunctions()
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
protected uk.co.agena.minerva.model.corebn.CoreBNNodeList getCoreBNNodeEquivalents(java.util.List extendedNodes) throws uk.co.agena.minerva.model.corebn.CoreBNNodeNotFoundException
uk.co.agena.minerva.model.corebn.CoreBNNodeNotFoundException
protected void storeFunctionsCorrectly(java.util.List temporaryFunctions, double version) throws ExtendedNodeFunctionException
temporaryFunctions
- the functions to storeversion
- the version of the file we're dealing with
ExtendedNodeFunctionException
public java.lang.String getCurrentParentModelNodeAltId()
public java.lang.String getDefaultParentModelNodeAltId()
public void updateFunctionsParentConnNodeId(java.lang.String oldConnNodeId, java.lang.String newConnNodeId)
oldConnNodeId
- newConnNodeId
- public boolean isNptSynchronisedWithFormula()
public void setNptSynchronisedWithFormula(boolean nptSynchronisedWithFormulea)
nptSynchronisedWithFormula
- The nptSynchronisedWithFormula to set.protected java.lang.String constructExtraFieldString()
protected void processExtraFields(java.util.StringTokenizer extraFields, double localVersion)
a
- StringTokenizer pointing to a String that contains concatenated
fieldspublic double getVersion()
Writable
getVersion
in interface Writable
public void setVersion(double version)
Writable
setVersion
in interface Writable
version
- the version numberpublic void cloneTypeSpecific(ExtendedNode oldEXN) throws ExtendedBNException
oldEXN
- The ExtendedNode the specific type data can be cloned from.
ExtendedBNException
public ExtendedNode copy(java.lang.Class type) throws ExtendedNodeCreationException, ExtendedBNException
type
- the type of node that will be created
ExtendedNodeCreationException
- if there is a problem during creation
ExtendedBNException
public int getActOnMarginalsChangedEvent()
public void setActOnMarginalsChangedEvent(int actOnMarginalsChangedEvent)
actOnMarginalsChangedEvent
- The actOnMarginalsChangedEvent to set.public boolean isChangeStatesOnInputNodeIfRequired()
public void setChangeStatesOnInputNodeIfRequired(boolean changeStatesOnInputNodeIfRequired)
changeStatesOnInputNodeIfRequired
- The changeStatesOnInputNodeIfRequired to set.public DataSetGrouping getSavedPriors()
public void setSavedPriors(DataSetGrouping savedPriors)
savedPriors
- The savedPriors to set.public void setCurrentParentModelNodeAltId(java.lang.String currentParentModelNodeAltId)
currentParentModelNodeAltId
- The currentParentModelNodeAltId to set.public void setDefaultParentModelNodeAltId(java.lang.String defaultParentModelNodeAltId)
defaultParentModelNodeAltId
- The defaultParentModelNodeAltId to set.public void setExtendedStates(java.util.List extendedStates)
extendedStates
- The extendedStates to set.public boolean isNptReCalcRequired()
public void setNptReCalcRequired(boolean nptReCalcRequired)
nptReCalcRequired
- The nptReCalcRequired to set.public abstract java.util.List createExtendedStates(DataSet ds) throws ExtendedStateNumberingException, ExtendedStateException
ds
- the DataSet used for creating the ExtendedStates
ExtendedStateNumberingException
ExtendedStateException
public abstract DataSet createDataSetForExtendedStates() throws ExtendedStateException
ExtendedStateException
public void addExtendedStates(java.util.List states, int index, boolean autoAssignId)
states
- index
- b
- public void recalculateConnStateIndices()
public abstract java.util.List replaceState(int index, int numDivisions) throws ExtendedStateException, ExtendedNodeMethodNotSupportedException
index
- the index of the state to splitnumDivisions
- the number of divisions it should be split into
ExtendedStateException
ExtendedNodeMethodNotSupportedException
public java.lang.String[] getSupportedFunctionTypes()
public boolean isInputNodeRecivedMarginalsAsEvidence()
public void setInputNodeRecivedMarginalsAsEvidence(boolean inputNodeRecivedMarginalsAsEvidence)
inputNodeRecivedMarginalsAsEvidence
- The inputNodeRecivedMarginalsAsEvidence to set.public DataSet getInputNodeRecivedMarginalsAsEvidenceDS()
public void setInputNodeRecivedMarginalsAsEvidenceDS(DataSet inputNodeRecivedMarginalsAsEvidenceDS)
inputNodeRecivedMarginalsAsEvidenceDS
- The inputNodeRecivedMarginalsAsEvidenceDS to set.public java.lang.String getCurrentPartitionedParentModelNodeAltIds()
public void setCurrentPartitionedParentModelNodeAltIds(java.lang.String currentPartitionedParentModelNodeAltIds)
currentPartitionedParentModelNodeAltIds
- The currentPartitionedParentModelNodeAltIds to set.public java.lang.String getDefaultPartitionedParentModelNodeAltIds()
public void setDefaultPartitionedParentModelNodeAltIds(java.lang.String defaultPartitionedParentModelNodeAltIds)
defaultPartitionedParentModelNodeAltIds
- The defaultPartitionedParentModelNodeAltIds to set.public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public abstract java.lang.Object getSamplesForState(int index, boolean boundsOnly) throws ExtendedStateException
index
- the index of the state that is to be sampledboundsOnly
- TODO
ExtendedStateNotFoundException
- if there is no state at the supplied index
ExtendedStateException
public boolean isTemporaryNodeOrderFlag()
public void setTemporaryNodeOrderFlag(boolean temporaryNodeOrderFlag)
public boolean isInputNodeReceivedMarginals()
public void setInputNodeReceivedMarginals(boolean inputNodeReceivedMarginals)
inputNodeReceivedMarginals
- The inputNodeReceivedMarginals to set.public int getNPTSize(java.util.List parentNodes)
parentNodes
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |