|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.xt_basis.RulePriority
public class RulePriority
Rule priority is a set of rule priority of a given graph grammar. The set is backed by a hash table.
Constructor Summary | |
---|---|
RulePriority(java.util.Enumeration<Rule> rules)
Creates a new set of rule priorities for a given graph grammar. |
|
RulePriority(java.util.List<Rule> rules)
|
|
RulePriority(java.util.Vector<Rule> rules)
|
Method Summary | |
---|---|
java.util.Hashtable<Rule,java.lang.Integer> |
getRulePriority()
Returns the rule Priorities. |
java.lang.Integer |
getStartPriority()
Returns the highest priority of the rule priority. |
java.util.Hashtable<java.lang.Integer,com.objectspace.jgl.HashSet> |
invertPriority()
Inverts a rule priority so that the priority is the key and the value is a set. |
void |
setPriority(Rule rule,
int p)
Sets the priority of the specified rule |
java.lang.String |
toString()
Returns the rule priority in a human readable way. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RulePriority(java.util.Enumeration<Rule> rules)
rules
- The rules of a graph grammar.public RulePriority(java.util.List<Rule> rules)
public RulePriority(java.util.Vector<Rule> rules)
Method Detail |
---|
public void setPriority(Rule rule, int p)
public java.util.Hashtable<Rule,java.lang.Integer> getRulePriority()
public java.lang.Integer getStartPriority()
public java.util.Hashtable<java.lang.Integer,com.objectspace.jgl.HashSet> invertPriority()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |