|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Utilities
Utilites.java contains several static methods that are used throughout the system
Constructor Summary | |
Utilities()
Creates new Utilities |
Method Summary | |
protected static boolean |
apply(java.util.LinkedList deck,
DeckEntry[] current_nodes,
int start_node,
RuleEntryLHS rule,
TripleStack ttable,
boolean[] implied,
boolean[] anti_implied,
Table2 features,
java.lang.String mode,
java.util.Vector parsed_decks)
This method reverses the application of the generation rule |
static boolean |
check(java.util.BitSet toclear,
java.lang.String item,
Table2 features)
Checks to see if a feature vector has a particular feature |
static boolean |
checkNclear(java.util.BitSet toclear,
java.lang.String item,
Table2 features)
Checks to see if a feature vector had a particluar feature, and if so removes it |
static java.util.LinkedList |
clone_deck(java.util.LinkedList deck)
Clone a deck. |
static void |
deckDisplay(java.util.LinkedList deck,
Table2 features)
|
static Triplepair |
parse(RuleEntryLHS[] rules,
java.util.LinkedList deck,
DeckEntry[] nodes,
int i,
java.lang.Integer rule_start_point,
Table2 features,
TripleStack ttable,
boolean application,
java.lang.String mode,
java.util.Vector parsed_decks)
parses the deck with the rules given |
static int |
subscriptEval(java.lang.String left_node,
java.lang.String right_node)
This will compare the value of the subscript of the two passed types |
static boolean |
typeEval(java.lang.String left_node,
java.lang.String right_node)
This will compare the types |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utilities()
Method Detail |
public static int subscriptEval(java.lang.String left_node, java.lang.String right_node)
left_node
- a type that is to be comparedright_node
- the other type that is to be comparedpublic static boolean typeEval(java.lang.String left_node, java.lang.String right_node)
left_node
- one of the nodes that are to be comparedright_node
- the other node that is to be comparedprotected static boolean apply(java.util.LinkedList deck, DeckEntry[] current_nodes, int start_node, RuleEntryLHS rule, TripleStack ttable, boolean[] implied, boolean[] anti_implied, Table2 features, java.lang.String mode, java.util.Vector parsed_decks)
deck
- the current deck being modifiedrule
- the rule that is being undonettable
- the object that the reconstructed objects go back intoimplied
- an array that reflects if the starred object should have a feature that one of the other object has.anti-implied
- an array that reflects if the starred object should have a feature that was taken away from an other object.public static boolean checkNclear(java.util.BitSet toclear, java.lang.String item, Table2 features)
toclear
- the feature vector that might have a particular featureitem
- the feature of interestfeatures
- the feature table needed for consistancy of the feature systempublic static boolean check(java.util.BitSet toclear, java.lang.String item, Table2 features)
featurevector
- the featurevector to checkthe
- feature table needed for consistancy of the feature systempublic static Triplepair parse(RuleEntryLHS[] rules, java.util.LinkedList deck, DeckEntry[] nodes, int i, java.lang.Integer rule_start_point, Table2 features, TripleStack ttable, boolean application, java.lang.String mode, java.util.Vector parsed_decks)
rules
- the possible rules to check in array formdeck
- the deck in LinkedList formnodes
- the deck in array formi
- the index for the node that is being examinedrule_start_point
- the point in the rule array to start the for loopfeatures
- the feature table, needed for consistancyttable
- the triple structure that the found doublets are stored inapplication
- used as a flag in the calling method to determine if a rule was appliedmode
- needed to know if a NP is to be added to the produced triplepublic static void deckDisplay(java.util.LinkedList deck, Table2 features)
public static java.util.LinkedList clone_deck(java.util.LinkedList deck)
deck
- Deck to clone.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |