|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.cons.ConstraintPriority
public class ConstraintPriority
Constraint priority is a set of priorities of a given graph grammar. The set is backed by a hash table.
Constructor Summary | |
---|---|
ConstraintPriority(java.util.Enumeration<Formula> constraints)
Creates a new set of constraint priorities for a given priority graph grammar. |
|
ConstraintPriority(java.util.List<Formula> constraints)
|
|
ConstraintPriority(java.util.Vector<Formula> constraints)
|
Method Summary | |
---|---|
void |
addPriority(Formula constraint,
int prior)
Sets the Priority of the specified constraint |
java.util.Hashtable<java.lang.Object,java.lang.Object> |
getConstraintPriority()
Returns the constraint (formula) priority. |
java.lang.Integer |
getStartPriority()
Returns the smallest priority of the constraint. |
java.util.Hashtable<java.lang.Integer,com.objectspace.jgl.HashSet> |
invertPriority()
Inverts and returns constraint priorities so that the key is a priority and the value is a set of constraints. |
java.lang.String |
toString()
Returns the constraint 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 ConstraintPriority(java.util.Enumeration<Formula> constraints)
constraints
- The constraints of a graph grammar.public ConstraintPriority(java.util.List<Formula> constraints)
public ConstraintPriority(java.util.Vector<Formula> constraints)
Method Detail |
---|
public void addPriority(Formula constraint, int prior)
public java.util.Hashtable<java.lang.Object,java.lang.Object> getConstraintPriority()
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 |