|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.kahina.core.breakpoint.TreeAutomatonRule
public class TreeAutomatonRule
Encodes a rule within a TreeAutomaton.
A rule states that the automaton is to annotate with some assignedLabel every node where
requiredChildAnnotationspattern
| Field Summary | |
|---|---|
static boolean |
verbose
|
| Constructor Summary | |
|---|---|
TreeAutomatonRule()
Class contructor. |
|
| Method Summary | |
|---|---|
int |
getAssignedLabel()
Gets the annotation that is added to nodes to which the rule applies. |
TreeNodePattern |
getPattern()
Gets the tree node pattern required for the rule to apply. |
Set<Integer> |
getRequiredChildAnnotations()
Gets the set of child annotations required for the rule to apply. |
boolean |
ruleApplies(TreeAutomaton aut,
int nodeID)
Check whether this rule applies to a tree node in an automaton at the current state. |
void |
setAssignedLabel(int assignedLabel)
Sets the annotation to be added to nodes to which the rule applies. |
void |
setPattern(TreeNodePattern pattern)
Changes the tree node pattern required for the rule to apply. |
void |
setRequiredChildAnnotations(Set<Integer> requiredChildAnnotations)
Changes the set of child annotations required for the rule to apply. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean verbose
| Constructor Detail |
|---|
public TreeAutomatonRule()
| Method Detail |
|---|
public boolean ruleApplies(TreeAutomaton aut,
int nodeID)
aut - the automaton that is to be checked (monitoring some tree structure)nodeID - the tree node to be checked
public String toString()
toString in class Objectpublic void setRequiredChildAnnotations(Set<Integer> requiredChildAnnotations)
requiredChildAnnotations - a set of integers representing required child annotationspublic Set<Integer> getRequiredChildAnnotations()
public void setPattern(TreeNodePattern pattern)
pattern - a tree node pattern defining when the rule is to applypublic TreeNodePattern getPattern()
public void setAssignedLabel(int assignedLabel)
assignedLabel - a stateID a matching node is to be annotated withpublic int getAssignedLabel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||