edu.ucla.belief
Class DecisionShell
Object
DecisionShell
- All Implemented Interfaces:
- CPTShell, DecisionListener, Potential, Cloneable
public class DecisionShell
- extends Object
- implements CPTShell, DecisionListener
- Since:
- 20050109
- Author:
- keith cascio
DecisionShell
public DecisionShell(DecisionTree tree)
decisionEvent
public void decisionEvent(DecisionEvent e)
- interface DecisionListener
- Specified by:
decisionEvent
in interface DecisionListener
getDecisionTree
public DecisionTree getDecisionTree()
clone
public Object clone()
- Specified by:
clone
in interface Potential
- Overrides:
clone
in class Object
randomJointValueIndex
public int randomJointValueIndex(Map mapInstantions)
- Specified by:
randomJointValueIndex
in interface CPTShell
getVariable
public FiniteVariable getVariable()
- Specified by:
getVariable
in interface CPTShell
variables
public List variables()
- Specified by:
variables
in interface CPTShell
- Specified by:
variables
in interface Potential
getCPTParameters
public CPTParameter[] getCPTParameters()
- Specified by:
getCPTParameters
in interface CPTShell
getCPTParameter
public CPTParameter getCPTParameter(int index)
- Specified by:
getCPTParameter
in interface CPTShell
getCPTParameter
public CPTParameter getCPTParameter(int[] mindex)
- Specified by:
getCPTParameter
in interface CPTShell
ensureNonsingular
public void ensureNonsingular()
- Specified by:
ensureNonsingular
in interface CPTShell
normalize
public void normalize()
throws Exception
- Specified by:
normalize
in interface CPTShell
- Throws:
Exception
replaceVariables
public void replaceVariables(Map old2new,
boolean partial)
- Specified by:
replaceVariables
in interface CPTShell
partial
- If true, then skip warnings about incomplete mapping.
multiplyInto
public void multiplyInto(Table t2)
- Specified by:
multiplyInto
in interface CPTShell
forget
public void forget(Variable from)
- Specified by:
forget
in interface CPTShell
expand
public void expand(FiniteVariable var)
- Specified by:
expand
in interface CPTShell
insertState
public void insertState(int index)
- Specified by:
insertState
in interface CPTShell
removeState
public void removeState(int index)
- Specified by:
removeState
in interface CPTShell
parentStateInserted
public void parentStateInserted(FiniteVariable parent,
int indexNewInstance)
- Specified by:
parentStateInserted
in interface CPTShell
parentStateRemoved
public void parentStateRemoved(FiniteVariable parent,
int indexRemovedInstance)
- Specified by:
parentStateRemoved
in interface CPTShell
index
public TableIndex index()
- Specified by:
index
in interface CPTShell
getCPT
public Table getCPT()
- Specified by:
getCPT
in interface CPTShell
scalar
public double scalar()
- Specified by:
scalar
in interface CPTShell
getCPScaled
public double getCPScaled(int ind)
- Specified by:
getCPScaled
in interface CPTShell
getCPScaled
public double getCPScaled(int[] indices)
- Specified by:
getCPScaled
in interface CPTShell
getCP
public double getCP(int index)
- Specified by:
getCP
in interface CPTShell
getCP
public double getCP(int[] indices)
- Specified by:
getCP
in interface CPTShell
getCP
public double getCP(Object[] instantiations)
- Specified by:
getCP
in interface CPTShell
getCP
public double getCP(Map instantiations)
- Specified by:
getCP
in interface CPTShell
getCP
public double getCP(Object[] parentInstantiations,
Object childInstatiation)
- Specified by:
getCP
in interface CPTShell
getRelevant
public Set getRelevant(int[] indices)
- Specified by:
getRelevant
in interface CPTShell
getRelevant
public Set getRelevant(Object[] instantiations)
- Specified by:
getRelevant
in interface CPTShell
getRelevant
public Set getRelevant(Map instantiations)
- Specified by:
getRelevant
in interface CPTShell
getRelevant
public Set getRelevant(Object[] parentInstantiations,
Object childInstatiation)
- Specified by:
getRelevant
in interface CPTShell
Copyright 2010 UCLA Automated Reasoning Group