|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--shared.AugCategory
The AugCategory class contains information on categories used in labelling and provides support for augmented categories. An augmented category has extra information besides the category number. The minimal augmentation implemented here also gives a string description. This class could be subclassed to provide certainty levels and other augmentations relevant for categories.
| Field Summary | |
static boolean |
MLCBinaryDisplay
Option to change display between MLC++ binary and MLC++ source specifications. |
| Constructor Summary | |
AugCategory(AugCategory ac)
Copy constructor. |
|
AugCategory(int aCat,
java.lang.String dscr)
Constructor. |
|
| Method Summary | |
int |
Category()
Returns the category number. |
java.lang.String |
description()
Returns the description as a string. |
void |
display(java.io.BufferedWriter ostream)
Prints the description and the category number. |
boolean |
equals(AugCategory rhs)
Checks if this AugCategory is "equivalent" to the specified AugCategory. |
boolean |
notequal(AugCategory rhs)
Checks if this AugCategory is not "equivalent" to the specified AugCategory. |
int |
num()
Returns the category number. |
java.lang.String |
toString()
Creates a String value containing the description and the category number. |
void |
update(int aCat,
java.lang.String dscr)
Sets the category and description to the specified values. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static boolean MLCBinaryDisplay
| Constructor Detail |
public AugCategory(int aCat,
java.lang.String dscr)
aCat - The category this AugCategory represents.dscr - The description of this AugCategory.public AugCategory(AugCategory ac)
ac - The AugCategory to be copied.| Method Detail |
public int num()
public java.lang.String description()
public int Category()
public void display(java.io.BufferedWriter ostream)
ostream - The output stream to be written to.public boolean equals(AugCategory rhs)
rhs - The AugCategory to which this instance is being compared.public boolean notequal(AugCategory rhs)
rhs - The AugCategory to which this instance is being compared.
public void update(int aCat,
java.lang.String dscr)
aCat - The new category.dscr - The new description.public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||