edu.ucla.belief.io
Class StandardNodeImpl
Object
VariableImpl
FiniteVariableImpl
StandardNodeImpl
- All Implemented Interfaces:
- FiniteVariable, PropertySuperintendent, StandardNode, Variable, Cloneable, Comparable
- Direct Known Subclasses:
- DSLNodeImpl, HuginNodeImpl, XmlbifParser.BifNode
public abstract class StandardNodeImpl
- extends FiniteVariableImpl
- implements StandardNode
- Since:
- 20021003
- Author:
- keith cascio
Fields inherited from interface PropertySuperintendent |
KEY_APPROXIMATED_PARENTS, KEY_EXCLUDEARRAY, KEY_EXCLUDEPOLICY, KEY_HUGIN_ID, KEY_HUGIN_LABEL, KEY_HUGIN_NAME, KEY_HUGIN_NODE_SIZE, KEY_HUGIN_POSITION, KEY_HUGIN_potential, KEY_HUGIN_potential_data, KEY_HUGIN_STATES, KEY_HUGIN_SUBTYPE, KEY_HUGINITY, KEY_IDS_RECOVERABLE_PARENTS, KEY_ISMAPVARIABLE, KEY_RECOVERABLES, KEY_SEENDEFAULTEVIDENCE, KEY_SOFT_EVIDENCE_CHILDREN, KEY_USERPROPERTIES, VALUE_PERMISSIVE, VALUE_STRICT, VALUE_TRUE |
Methods inherited from class FiniteVariableImpl |
clone, contains, debugInstance, deepCloneMapTypesToShells, findVariablesForType, getCPTShell, getCPTShell, getDSLNodeType, grep, grep, grep, index, insert, instance, instance, instances, remove, set, setCPTShell, setCPTShell, setDSLNodeType, size, size, thereExists, toString |
Methods inherited from class VariableImpl |
compareTo, delete, forID, getEnumProperties, getID, getNumProperties, getProperty, getStringifier, getUserObject, index, initProperties, isStringifier, propertiesArrayCopy, setID, setStringifier, setUserObject, validatePropertyNameAndID |
Methods inherited from interface FiniteVariable |
contains, getCPTShell, getCPTShell, getDSLNodeType, grep, grep, grep, index, insert, instance, instance, instances, remove, set, setCPTShell, setCPTShell, setDSLNodeType, size |
StandardNodeImpl
public StandardNodeImpl(String id,
List values,
Map properties)
StandardNodeImpl
public StandardNodeImpl(String id,
List values)
- Since:
- 20060523
getExcludeArray
public boolean[] getExcludeArray()
- Specified by:
getExcludeArray
in interface StandardNode
- Since:
- 051002
setExcludeArray
public void setExcludeArray(boolean[] xa)
- Specified by:
setExcludeArray
in interface StandardNode
- Since:
- 20020510
isMAPVariable
public boolean isMAPVariable()
- Moved from HuginNodeImpl 062204 @since 071603
- Specified by:
isMAPVariable
in interface StandardNode
setMAPVariable
public void setMAPVariable(boolean flag)
- Moved from HuginNodeImpl 062204 @since 071603
- Specified by:
setMAPVariable
in interface StandardNode
getExcludePolicy
public ExcludePolicy getExcludePolicy()
- Specified by:
getExcludePolicy
in interface StandardNode
- Since:
- 072203
setExcludePolicy
public void setExcludePolicy(ExcludePolicy ep)
- Specified by:
setExcludePolicy
in interface StandardNode
setProperty
public void setProperty(EnumProperty property,
EnumValue value)
- Specified by:
setProperty
in interface Variable
- Overrides:
setProperty
in class VariableImpl
- Since:
- 082703
getDefaultStateIndex
public Integer getDefaultStateIndex()
- Description copied from interface:
StandardNode
- originally in DSLNode
- Specified by:
getDefaultStateIndex
in interface StandardNode
- Since:
- 041304
getDiagnosisType
public DiagnosisType getDiagnosisType()
- Description copied from interface:
StandardNode
- originally in DSLNode
- Specified by:
getDiagnosisType
in interface StandardNode
- Since:
- 091603
setDiagnosisType
public void setDiagnosisType(DiagnosisType newVal)
- Description copied from interface:
StandardNode
- originally in DSLNode
- Specified by:
setDiagnosisType
in interface StandardNode
- Since:
- 091603
getLocation
public Point getLocation(Point ret)
- Description copied from interface:
StandardNode
- Will get the location from a HuginNode. If the location does not exist, it will
display a message on the System.err screen and set the location to (0,0).
- Specified by:
getLocation
in interface StandardNode
- Since:
- 101702
setLocation
public void setLocation(Point newLoc)
- Specified by:
setLocation
in interface StandardNode
- Since:
- 101702
getDimension
public Dimension getDimension(Dimension d)
- Description copied from interface:
StandardNode
- Will return the node size listed in the HuginNet file. If it does not
exist, it will return a null.
This function looks for a node size from the actual node, not from the
network.
- Specified by:
getDimension
in interface StandardNode
setDimension
public void setDimension(Dimension d)
- Specified by:
setDimension
in interface StandardNode
countMaxPositionCoincidence
public static int countMaxPositionCoincidence(BeliefNetwork bn)
- Since:
- 010904
deepCopyMap
public static Map deepCopyMap(Map toCopy)
- Returns:
- A Map containing all key/value pairs from toCopy for which the value could be cloned.
- Since:
- 20020604
setDefaultEvidence
public static EvidenceController setDefaultEvidence(EvidenceController castro)
throws StateNotFoundException
- Throws:
StateNotFoundException
- Since:
- 20081110
countDefaultEvidence
public static int countDefaultEvidence(BeliefNetwork bn)
- Since:
- 20100113
seenDefaultEvidence
public static boolean seenDefaultEvidence(PropertySuperintendent props,
BeliefNetwork bn)
- Since:
- 20100113
Copyright 2010 UCLA Automated Reasoning Group