|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--COM.hugin.HAPI.NetworkModel
|
+--COM.hugin.HAPI.Class
Instances of the Class class represent object-oriented Bayesian
networks and influence diagrams. 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 influence diagram. The createDomain() method handles this.
| Inner classes inherited from class COM.hugin.HAPI.NetworkModel |
NetworkModel.Category,
NetworkModel.Constraint,
NetworkModel.Endian,
NetworkModel.Kind |
| 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,
openLogFile,
openLogFile,
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,
ExceptionArgumentNotAlive
cc - the ClassCollection in which to add the new Class.
public Class(ClassCollection cc,
java.lang.String name)
throws ExceptionHugin,
ExceptionArgumentNotAlive
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 ExceptionObjectNotAlive
public void delete()
throws ExceptionObjectNotAlive,
ExceptionHugin
public void setName(java.lang.String name)
throws ExceptionObjectNotAlive,
ExceptionHugin
name - A string containing the name of this Class.
public java.lang.String getName()
throws ExceptionObjectNotAlive,
ExceptionHugin
public NodeList getOutputs()
throws ExceptionObjectNotAlive,
ExceptionHugin
public NodeList getInputs()
throws ExceptionObjectNotAlive,
ExceptionHugin
public Domain createDomain()
throws ExceptionObjectNotAlive,
ExceptionHugin
Please note that the Nodes of the created Domain do not have
names. This implies that getNodeByName(String) returns
null. It is the responsibility of the application programmer to
set the names these nodes. One obvious way of doing that would
be to compose the names from the names of the Nodes returned by
the getSource() method.
public NodeList getInstances()
throws ExceptionObjectNotAlive,
ExceptionHugin
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||