|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCOM.hugin.HAPI.ClassCollection
Classes are grouped into ClassCollections. Each class must belong to exactly one ClassCollection. A ClassCollection can be considered a closed world of interdependent Classes (i.e., Bayesian networks and influence diagrams). That is, each Class may contain instances of other Classes of the ClassCollection, but not of Classes of other ClassCollections.
Different operations are supported for ClassCollections:
Constructor Summary | |
ClassCollection()
Constructs a new (empty) ClassCollection. |
Method Summary | |
void |
delete()
Deletes this ClassCollection and all its Classs. |
Class |
getClassByName(java.lang.String name)
Returns the Class of this ClassCollection that has a given name. |
ClassList |
getMembers()
Returns a ClassList containing the Class members of this ClassCollection. |
void |
parseClasses(java.lang.String fileName)
Constructs one or more classes from a NET file. |
void |
parseClasses(java.lang.String fileName,
ClassParseListener pl)
Constructs one or more classes from a NET file. |
void |
saveAsNet(java.lang.String fileName)
Writes a NET description of the ClassCollection to a file. |
java.lang.String |
toString()
Returns a String of names of the member Classes of this ClassCollection. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClassCollection() throws ExceptionHugin
Method Detail |
public void parseClasses(java.lang.String fileName, ClassParseListener pl) throws ExceptionHugin
fileName
- A String containing the name of the NET file.pl
- a ClassParseListener.
ExceptionHugin
public void parseClasses(java.lang.String fileName) throws ExceptionHugin
DefaultClassParseListener
.
fileName
- A string containing the name of the NET file.
ExceptionHugin
public void delete() throws ExceptionHugin
ExceptionHugin
public ClassList getMembers() throws ExceptionHugin
ExceptionHugin
public Class getClassByName(java.lang.String name) throws ExceptionHugin
name
- A string representing the name of a Class.
ExceptionHugin
public void saveAsNet(java.lang.String fileName) throws ExceptionHugin
fileName
- a string containing the name of the file.
ExceptionHugin
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |