|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.utils.OrDecider
public class OrDecider
INTERNAL: Decider that checks all subdeciders and returns true of one of them gives a positive decision.
Note that the decision is shortcircuited when the first decider gives a positive decision, the rest is then not checked.
| Field Summary | |
|---|---|
protected Set |
deciders
|
| Constructor Summary | |
|---|---|
OrDecider(DeciderIF decider)
|
|
OrDecider(Set deciders)
|
|
| Method Summary | |
|---|---|
void |
addDecider(DeciderIF decider)
Add a subdecider. |
Set |
getDeciders()
Gets the subdeciders. |
boolean |
ok(Object object)
PUBLIC: Returns true if the object is accepted. |
void |
removeDecider(DeciderIF decider)
Remove a subdecider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Set deciders
| Constructor Detail |
|---|
public OrDecider(DeciderIF decider)
public OrDecider(Set deciders)
| Method Detail |
|---|
public Set getDeciders()
public void addDecider(DeciderIF decider)
public void removeDecider(DeciderIF decider)
public boolean ok(Object object)
DeciderIF
ok in interface DeciderIF
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||