|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.lancs.relate.trigger.conditions.Condition
uk.ac.lancs.relate.trigger.conditions.QuantifierCondition
public class QuantifierCondition
Condition which considers spatial relationships between two or more trackables.
| Constructor Summary | |
|---|---|
QuantifierCondition(Application app,
java.lang.String id1,
java.lang.String id2)
Creates a new trackable condition, meaning a condition which considers spatial relationships between two or more trackables. |
|
| Method Summary | |
|---|---|
void |
defineActiveTrackable()
This method defines part of what should be done before evaluating a condition. |
void |
defineInvolvedTrackables()
Defines all trackables that are involved in this condition. |
boolean |
evaluate()
Return true if the condition is fulfilled, else false. |
boolean |
evaluateFor2(Trackable t1,
Trackable t2)
Return true if the condition is fulfilled for the combination of two trackables, else false. |
boolean |
resolveQuantifiers()
The id2 can also be '*', 'ALL' or 'ANY', for example 'if all users are out of the zone ...'. |
| Methods inherited from class uk.ac.lancs.relate.trigger.conditions.Condition |
|---|
addInvolvedTrackable, addInvolvedTrackable, getActiveTrackable, getApp, getInvolvedTrackables, getTrackableById, setActiveTrackable, setApp, setInvolvedTrackables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuantifierCondition(Application app,
java.lang.String id1,
java.lang.String id2)
app - applicationid1 - unique id of the active trackable, normally the userid2 - unique id of the passive trackable, e.g. a device, '*' = 'ANY' or 'ALL'| Method Detail |
|---|
public boolean evaluate()
evaluate in class Condition
public boolean evaluateFor2(Trackable t1,
Trackable t2)
t1 - active trackable, usually the usert2 - passive trackable, usually the device
public boolean resolveQuantifiers()
public void defineInvolvedTrackables()
defineInvolvedTrackables in class Conditionpublic void defineActiveTrackable()
Condition
defineActiveTrackable in class Condition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||