edu.ucla.belief.io.hugin
Class HuginNodeImpl

Object
  extended by VariableImpl
      extended by FiniteVariableImpl
          extended by StandardNodeImpl
              extended by HuginNodeImpl
All Implemented Interfaces:
FiniteVariable, HuginNode, HuginReaderConstants, PropertySuperintendent, StandardNode, Variable, Cloneable, Comparable

public class HuginNodeImpl
extends StandardNodeImpl
implements HuginNode

Encapsulates a hugin node description.


Nested Class Summary
 
Nested classes/interfaces inherited from class StandardNodeImpl
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
 
Fields inherited from interface HuginReaderConstants
CLASS, COMMENT, CONTINUOUS, DECISION, DEFAULT, DISCRETE, EOF, ID, MAP_LIT, NET, NODE, NUM, POTENTIAL, STRING, tokenImage, UTILITY, VALSTRING
 
Constructor Summary
HuginNodeImpl(FiniteVariable toUpgrade)
           
HuginNodeImpl(String id, List instances, Map values)
           
HuginNodeImpl(String id, List instances, Map values, int argNodeType, int vartype)
           
HuginNodeImpl(String id, Map values)
          Constructs with default values: type NODE and DISCRETE.
HuginNodeImpl(String id, Map values, int myHuginType, int vartype)
           
 
Method Summary
 Object clone()
           
 String getLabel()
          Will get the label from a HuginNodeImpl.
 int getNodeType()
           
 Map getProperties()
           
 int getValueType()
           
 boolean isSpecifiedDimension()
           
 void resetSpecifiedDimension()
           
 void setLabel(String newVal)
           
 String toString()
           
 
Methods inherited from class StandardNodeImpl
countDefaultEvidence, countMaxPositionCoincidence, deepCopyMap, getDefaultStateIndex, getDiagnosisType, getDimension, getExcludeArray, getExcludePolicy, getLocation, isMAPVariable, seenDefaultEvidence, setDefaultEvidence, setDiagnosisType, setDimension, setExcludeArray, setExcludePolicy, setLocation, setMAPVariable, setProperty
 
Methods inherited from class FiniteVariableImpl
contains, debugInstance, deepCloneMapTypesToShells, findVariablesForType, getCPTShell, getCPTShell, getDSLNodeType, grep, grep, grep, index, insert, instance, instance, instances, remove, set, setCPTShell, setCPTShell, setDSLNodeType, size, size, thereExists
 
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
getDefaultStateIndex, getDiagnosisType, getDimension, getExcludeArray, getExcludePolicy, getLocation, isMAPVariable, setDiagnosisType, setDimension, setExcludeArray, setExcludePolicy, setLocation, setMAPVariable
 
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
delete, getEnumProperties, getID, getProperty, getUserObject, setID, setProperty, setUserObject
 
Methods inherited from interface Comparable
compareTo
 

Constructor Detail

HuginNodeImpl

public HuginNodeImpl(String id,
                     List instances,
                     Map values,
                     int argNodeType,
                     int vartype)

HuginNodeImpl

public HuginNodeImpl(String id,
                     Map values)
Constructs with default values: type NODE and DISCRETE.

Since:
042902

HuginNodeImpl

public HuginNodeImpl(String id,
                     Map values,
                     int myHuginType,
                     int vartype)

HuginNodeImpl

public HuginNodeImpl(String id,
                     List instances,
                     Map values)

HuginNodeImpl

public HuginNodeImpl(FiniteVariable toUpgrade)
Since:
020603
Method Detail

clone

public Object clone()
Specified by:
clone in interface Variable
Overrides:
clone in class FiniteVariableImpl

isSpecifiedDimension

public boolean isSpecifiedDimension()
Specified by:
isSpecifiedDimension in interface HuginNode

resetSpecifiedDimension

public void resetSpecifiedDimension()
Specified by:
resetSpecifiedDimension in interface HuginNode

getLabel

public String getLabel()
Will get the label from a HuginNodeImpl. Can possibly return null if one is not present. Will not return empty string, will return null in its place.

Specified by:
getLabel in interface StandardNode

setLabel

public void setLabel(String newVal)
Specified by:
setLabel in interface StandardNode

getProperties

public Map getProperties()
Specified by:
getProperties in interface PropertySuperintendent

getValueType

public int getValueType()
Specified by:
getValueType in interface HuginNode

getNodeType

public int getNodeType()
Specified by:
getNodeType in interface HuginNode

toString

public String toString()
Overrides:
toString in class FiniteVariableImpl


Copyright 2010 UCLA Automated Reasoning Group