|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.servlet.sip.appRouter.DFCRouterImpl.PrecedenceRules
public class PrecedenceRules
This class encapsulates the complete set of precedence rule pairs that dictate the overall partial ordering among applications within a given routing region (either originating or terminating). This includes the machinery necessary for detecting and removing cycles in the precedence orderings.
Constructor Summary | |
---|---|
PrecedenceRules()
Constructor to initialize the precdence rule set. |
Method Summary | |
---|---|
void |
addOrderingList(org.w3c.dom.NodeList orderingNodeList)
Given a DOM NodeList representing a list of ordering fragments, convert them to precedence pair objects and add them to the precedence rules set. |
void |
addRule(PrecedencePair pp)
Add a precedence pair to the rule set. |
int |
compare(boolean reverse,
Application a1,
Application a2)
Use the precedence rule set to determine the order of two applications. |
PrecedencePair |
getCycle()
Find a cycle in the precedence rules. |
java.util.Enumeration |
getRules()
Return an enumeration of the rules in the rule set. |
boolean |
hasRule(PrecedencePair pr)
Check if the precedence rule set already contains the precedence pair. |
void |
removeRule(PrecedencePair pp)
Remove the precedence pair from the rule set. |
java.lang.String |
toString()
Render the complete set of precedence rules (without cycles) as a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrecedenceRules()
Method Detail |
---|
public void addOrderingList(org.w3c.dom.NodeList orderingNodeList)
app1
> app2
, app2
>
app1
. When such cycles are detected, a minimal set of
precedence pairs are discarded to remove the cycle.
public java.lang.String toString()
toString
in class java.lang.Object
public void addRule(PrecedencePair pp)
pp
- The precedence pair to be addedpublic boolean hasRule(PrecedencePair pr)
pr
- The precedence pair object to be looked for in the current rule set.PrecedencePair
public PrecedencePair getCycle()
public void removeRule(PrecedencePair pp)
pp
- Precedence pair to be removedpublic java.util.Enumeration getRules()
public int compare(boolean reverse, Application a1, Application a2)
reverse
- a boolean that determines the order of comparisona1
- The first application to be compareda2
- The second application to be comparedaddOrderingList(NodeList)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |