|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.utils.AndDecider<T>
public class AndDecider<T>
INTERNAL: Decider that checks all subdeciders and returns true if all of them gives a positive decision. Note that the decision is shortcircuited when the first decider gives a negative decision, the rest is then not checked.
| Field Summary | |
|---|---|
protected Collection<DeciderIF<T>> |
deciders
|
| Constructor Summary | |
|---|---|
AndDecider(Collection<DeciderIF<T>> deciders)
|
|
| Method Summary | |
|---|---|
void |
addDecider(DeciderIF<T> decider)
Add a subdecider. |
Collection<DeciderIF<T>> |
getDeciders()
Gets the subdeciders. |
boolean |
ok(T object)
PUBLIC: Returns true if the object is accepted. |
void |
removeDecider(DeciderIF<T> 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 Collection<DeciderIF<T>> deciders
| Constructor Detail |
|---|
public AndDecider(Collection<DeciderIF<T>> deciders)
| Method Detail |
|---|
public Collection<DeciderIF<T>> getDeciders()
public void addDecider(DeciderIF<T> decider)
public void removeDecider(DeciderIF<T> decider)
public boolean ok(T object)
DeciderIF
ok in interface DeciderIF<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||