|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--SSF.OS.BGP4.Policy.Rule
This class captures the notion of a policy rule used for BGP route filtering.
| Constructor Summary | |
Rule()
Constructs a default policy rule which denies all routes. |
|
Rule(java.util.ArrayList clauselist)
Constructs the policy rule with the given clauses. |
|
Rule(boolean permit)
Constructs a policy rule to either deny all routes or permit all routes. |
|
| Method Summary | |
void |
add_clause(Clause c)
Adds a clause to the policy rule at the end of the list. |
boolean |
apply_to(Route r)
Applies the policy rule to the given route, determining whether it will be denied or permitted, and applying any desired attribute manipulation on those which are permitted. |
java.lang.String |
toString()
Puts the rule into string form suitable for output. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Rule(boolean permit)
permit - Whether to permit all routes or deny all routes.public Rule()
public Rule(java.util.ArrayList clauselist)
| Method Detail |
public void add_clause(Clause c)
public boolean apply_to(Route r)
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 | |||||||||