|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--COM.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.
public void parseClasses(java.lang.String fileName)
throws ExceptionHugin
DefaultClassParseListener.fileName - A string containing the name of the NET file.
public void delete()
throws ExceptionHugin,
ExceptionObjectNotAlive
public ClassList getMembers()
throws ExceptionHugin,
ExceptionObjectNotAlive
public Class getClassByName(java.lang.String name)
throws ExceptionObjectNotAlive,
ExceptionHugin
name - A string representing the name of a Class.
public void saveAsNet(java.lang.String fileName)
throws ExceptionObjectNotAlive,
ExceptionHugin
filename - a string containing the name of the file.public java.lang.String toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||