edu.ucla.belief.io
Class StandardNodeImpl

Object
  extended by VariableImpl
      extended by FiniteVariableImpl
          extended by 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

Nested Class Summary
static class StandardNodeImpl.Struct
           
 
Field Summary
 
Fields inherited from class VariableImpl
id, INT_NUM_PROPERTIES, theCollator, userobject
 
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
 
Constructor Summary
StandardNodeImpl(String id, List values)
           
StandardNodeImpl(String id, List values, Map properties)
           
 
Method Summary
static int countDefaultEvidence(BeliefNetwork bn)
           
static int countMaxPositionCoincidence(BeliefNetwork bn)
           
static Map deepCopyMap(Map toCopy)
           
 Integer getDefaultStateIndex()
          originally in DSLNode
 DiagnosisType getDiagnosisType()
          originally in DSLNode
 Dimension getDimension(Dimension d)
          Will return the node size listed in the HuginNet file.
 boolean[] getExcludeArray()
           
 ExcludePolicy getExcludePolicy()
           
 Point getLocation(Point ret)
          Will get the location from a HuginNode.
 boolean isMAPVariable()
          Moved from HuginNodeImpl 062204 @since 071603
static boolean seenDefaultEvidence(PropertySuperintendent props, BeliefNetwork bn)
           
static EvidenceController setDefaultEvidence(EvidenceController castro)
           
 void setDiagnosisType(DiagnosisType newVal)
          originally in DSLNode
 void setDimension(Dimension d)
           
 void setExcludeArray(boolean[] xa)
           
 void setExcludePolicy(ExcludePolicy ep)
           
 void setLocation(Point newLoc)
           
 void setMAPVariable(boolean flag)
          Moved from HuginNodeImpl 062204 @since 071603
 void setProperty(EnumProperty property, EnumValue value)
           
 
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 class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface StandardNode
getLabel, setLabel
 
Methods inherited from interface FiniteVariable
contains, getCPTShell, getCPTShell, getDSLNodeType, grep, grep, grep, index, insert, instance, instance, instances, remove, set, setCPTShell, setCPTShell, setDSLNodeType, size
 
Methods inherited from interface Variable
clone, delete, getEnumProperties, getID, getProperty, getUserObject, setID, setUserObject
 
Methods inherited from interface Comparable
compareTo
 
Methods inherited from interface PropertySuperintendent
getProperties
 

Constructor Detail

StandardNodeImpl

public StandardNodeImpl(String id,
                        List values,
                        Map properties)

StandardNodeImpl

public StandardNodeImpl(String id,
                        List values)
Since:
20060523
Method Detail

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