|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umich.soar.hpp.HPPVariable
edu.umich.soar.hpp.HPPMultiVariable
public class HPPMultiVariable
Variable whose values can be represented with a discrete conditional-probability table (CPT). For convenience, supports a default value for CPT fall-through.
Constructor Summary | |
---|---|
HPPMultiVariable(java.lang.String name,
java.lang.String defaultValue)
Basic constructor - empty CPT |
|
HPPMultiVariable(java.lang.String name,
java.lang.String defaultValue,
HPPCPTEntry[] cpt)
Advanced constructor to initialize the CPT |
Method Summary | |
---|---|
protected void |
addCPTEntries(HPPCPTEntry[] cpt)
For convenience, supports appending multiple entries to the CPT |
void |
addCPTEntry(HPPCPTEntry newEntry)
Supports appending to the CPT |
java.util.Iterator<HPPCPTEntry> |
getCPT()
Supports read-only access to the CPT [via entries] |
java.lang.String |
getDefaultValue()
Supports read-only access to the default value |
java.lang.String |
getType()
A variable's type is just a string (used for console debugging) |
Methods inherited from class edu.umich.soar.hpp.HPPVariable |
---|
compareTo, getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HPPMultiVariable(java.lang.String name, java.lang.String defaultValue)
name
- variable namedefaultValue
- default value, or null for nonepublic HPPMultiVariable(java.lang.String name, java.lang.String defaultValue, HPPCPTEntry[] cpt)
name
- variable namedefaultValue
- default value, or null fo rnonecpt
- initial cpt entriesMethod Detail |
---|
public java.lang.String getDefaultValue()
public java.util.Iterator<HPPCPTEntry> getCPT()
public void addCPTEntry(HPPCPTEntry newEntry)
newEntry
- entry to add to the CPTprotected void addCPTEntries(HPPCPTEntry[] cpt)
cpt
- array of entries to add to the CPTpublic java.lang.String getType()
HPPVariable
getType
in class HPPVariable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |