edu.ucla.belief.io.hugin
Class HuginNetImpl
Object
BeliefNetworkImpl
HuginNetImpl
- All Implemented Interfaces:
- BeliefNetwork, HuginNet, PropertySuperintendent, DirectedGraph, Cloneable, Iterable, Collection
public class HuginNetImpl
- extends BeliefNetworkImpl
- implements HuginNet
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 BeliefNetworkImpl |
add, addAll, addAuditor, addEdge, addEdge, addVariable, addVertex, checkValidProbabilities, clear, clone, cloneAllCPTShells, contains, containsAll, containsEdge, countUserEnumProperties, deepClone, degree, equals, findVariables, fireAudit, forAll, forID, getAutoCPTInvalidation, getEvidenceController, getMaxDomainCardinality, getMaxTheoreticalCPTSize, getMinDomainCardinality, getMinTheoreticalCPTSize, getProperties, getTheoreticalCPTSize, getUserEnumProperties, getUserObject, getUserObject2, hashCode, hasPath, identifierChanged, inComing, inDegree, induceGraph, induceGraph, insertState, isAcyclic, isEmpty, isSinglyConnected, isWeaklyConnected, isWeaklyConnected, iterator, maintainsAcyclicity, makeUserEnumProperties, minimalProperties, numEdges, outDegree, outGoing, propertiesAsArray, putAll, remove, removeAll, removeAuditor, removeEdge, removeEdge, removeEdge, removeEdgeNoCPTChanges, removeState, removeVariable, removeVertex, replaceAllPotentials, replaceVariables, replaceVariables, replaceVertex, replaceVertices, retainAll, setAutoCPTInvalidation, setEvidenceController, setScalars, setUserEnumProperties, setUserEnumPropertiesModified, setUserObject, setUserObject2, shallowClone, size, tables, thereExists, thereExistsModifiedUserEnumProperty, toArray, toArray, topologicalOrder, vertices, writeToVCGFile |
Methods inherited from interface BeliefNetwork |
addAuditor, addEdge, addVariable, checkValidProbabilities, clone, cloneAllCPTShells, countUserEnumProperties, deepClone, findVariables, fireAudit, forAll, forID, getAutoCPTInvalidation, getEvidenceController, getMaxDomainCardinality, getMaxTheoreticalCPTSize, getMinDomainCardinality, getMinTheoreticalCPTSize, getTheoreticalCPTSize, getUserEnumProperties, identifierChanged, induceGraph, insertState, makeUserEnumProperties, propertiesAsArray, removeAuditor, removeEdge, removeState, removeVariable, replaceAllPotentials, replaceVariables, setAutoCPTInvalidation, setEvidenceController, setScalars, setUserEnumProperties, setUserEnumPropertiesModified, shallowClone, tables, thereExists, thereExistsModifiedUserEnumProperty |
Methods inherited from interface DirectedGraph |
addEdge, addVertex, contains, containsEdge, degree, hasPath, inComing, inDegree, isAcyclic, isSinglyConnected, isWeaklyConnected, isWeaklyConnected, maintainsAcyclicity, numEdges, outDegree, outGoing, removeEdge, removeVertex, replaceVertex, replaceVertices, size, topologicalOrder, vertices |
Methods inherited from interface Collection |
add, addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
FLAG_DEBUG
public static boolean FLAG_DEBUG
HuginNetImpl
public HuginNetImpl()
HuginNetImpl
public HuginNetImpl(boolean construct)
- Since:
- 20060519
HuginNetImpl
public HuginNetImpl(Map mapVariablesToPotentials)
HuginNetImpl
public HuginNetImpl(BeliefNetworkImpl toUpgrade)
- Since:
- 020603
newFiniteVariable
public FiniteVariable newFiniteVariable(Map properties)
- Specified by:
newFiniteVariable
in interface BeliefNetwork
- Overrides:
newFiniteVariable
in class BeliefNetworkImpl
- Since:
- 20080219
mayContain
public boolean mayContain(Object obj)
- Specified by:
mayContain
in interface BeliefNetwork
- Overrides:
mayContain
in class BeliefNetworkImpl
setParams
public void setParams(Map inputParams)
- Sets the net parameters to the name value pairs contained in params.
- Specified by:
setParams
in interface HuginNet
getVersion
public HuginFileVersion getVersion()
- Specified by:
getVersion
in interface HuginNet
- Since:
- 012204
setVersion
public void setVersion(HuginFileVersion version)
- Specified by:
setVersion
in interface HuginNet
- Since:
- 012204
getCopier
public Copier getCopier()
- Specified by:
getCopier
in interface BeliefNetwork
- Overrides:
getCopier
in class BeliefNetworkImpl
- Since:
- 021804
seededClone
public BeliefNetwork seededClone(Map variablesOldToNew)
- Description copied from class:
BeliefNetworkImpl
Call this method to clone a BeliefNetworkImpl when for whatever
reason you have already cloned all the Variables it contains,
and you have a mapping from the Variables it contains to
Variables that you would like the cloned BeliefNetworkImpl to
contain.
NOTE: If the BeliefNetworkImpl points to a HuginNet "userobject", this method will
clone that HuginNet also. You are not resposible for cloning the HuginNet yourself
if you call this method.
- Specified by:
seededClone
in interface BeliefNetwork
- Overrides:
seededClone
in class BeliefNetworkImpl
- Parameters:
variablesOldToNew
- A mapping from variables this BeliefNetworkImpl contains
to the new ones you would like the cloned BeliefNetworkImpl to contain.
toString
public String toString()
- Overrides:
toString
in class BeliefNetworkImpl
- Since:
- 061002
getGlobalNodeSize
public Dimension getGlobalNodeSize(Dimension dim)
- Will return the node size listed in the HuginNetImpl file. If it does not
exist, it will return a null.
This function looks for a node size from the network.
- Specified by:
getGlobalNodeSize
in interface HuginNet
Copyright 2010 UCLA Automated Reasoning Group