|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCOM.hugin.HAPI.NetworkModel
COM.hugin.HAPI.Class
Instances of the Class class represent object-oriented Bayesian
networks and LIMIDs. Such an instance can contain nodes
representing instances of other network classes and so on. To use
an instance (i.e., propagate evidence and calculate updated beliefs
and expected utilities), it must first be unfolded to a plain
Bayesian network or LIMID. The createDomain()
method handles this.
Nested Class Summary |
Nested classes inherited from class COM.hugin.HAPI.NetworkModel |
NetworkModel.Category, NetworkModel.Constraint, NetworkModel.Kind |
Field Summary |
Constructor Summary | |
Class(ClassCollection cc)
Constructs a new Class in a ClassCollection. |
|
Class(ClassCollection cc,
java.lang.String name)
Constructs a new named Class in a ClassCollection. |
Method Summary | |
Domain |
createDomain()
Unfolds the Class to a Domain that can be compiled and used for inference, etc. |
void |
delete()
Deletes this Class, including all Nodes belonging to it. |
ClassCollection |
getClassCollection()
Returns the ClassCollection to which this Class belongs. |
NodeList |
getInputs()
Returns a list of the input nodes defined for this Class. |
NodeList |
getInstances()
Returns the list of InstanceNodes that are instances of this Class. |
java.lang.String |
getName()
Gets the name of this Class. |
NodeList |
getOutputs()
Returns a list of the output nodes defined for this Class. |
void |
setName(java.lang.String name)
Sets the name of this Class. |
Methods inherited from class COM.hugin.HAPI.NetworkModel |
closeLogFile, generateTables, getAttribute, getAttributes, getFileName, getLogFile, getNodeByName, getNodes, getNodeSize, getUserData, INFINITY, isAlive, openLogFile, openLogFile, parseNodes, saveAsNet, setAttribute, setNodeSize, setUserData |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Class(ClassCollection cc) throws ExceptionHugin
cc
- the ClassCollection in which to add the new Class.public Class(ClassCollection cc, java.lang.String name) throws ExceptionHugin
cc
- the ClassCollection in which to add the new Class.name
- the name of the new Class (a String).Method Detail |
public ClassCollection getClassCollection() throws ExceptionHugin
ExceptionHugin
public void delete() throws ExceptionHugin
delete
in class NetworkModel
ExceptionHugin
public void setName(java.lang.String name) throws ExceptionHugin
name
- A string containing the name of this Class.
ExceptionHugin
public java.lang.String getName() throws ExceptionHugin
ExceptionHugin
public NodeList getOutputs() throws ExceptionHugin
ExceptionHugin
public NodeList getInputs() throws ExceptionHugin
ExceptionHugin
public Domain createDomain() throws ExceptionHugin
ExceptionHugin
public NodeList getInstances() throws ExceptionHugin
ExceptionHugin
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |