|
||||||||||
| 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.ZoneCondition
public class ZoneCondition
A zone condition is a condition which considers spatial relationships between one or more trackables and a zone.
| Constructor Summary | |
|---|---|
ZoneCondition(java.lang.String id1,
java.lang.String deviceId)
Creates a new trackable condition, meaning a condition which considers spatial relationships between two or more trackables. |
|
| Method Summary | |
|---|---|
void |
defineActiveTrackable()
In this case the active trackable is the one specified in the constructor (id1). |
void |
defineInvolvedTrackables()
In this case the involved trackable is the one specified in the constructor (id1). |
boolean |
evaluate()
Return true if the condition is fulfilled, else false. |
int |
getNrTrackablesInZone()
Returns the number of trackables in this application which are currently in this zone. |
Zone |
getZone()
Returns the zone of this condition. |
boolean |
inZone(Trackable trackable)
Returns true if the given trackable is in this zone |
void |
setZone(Zone zone)
Sets the zone of this condition. |
| 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 ZoneCondition(java.lang.String id1,
java.lang.String deviceId)
id1 - unique id of the active trackable, normally the user| Method Detail |
|---|
public boolean evaluate()
evaluate in class Conditionpublic boolean inZone(Trackable trackable)
trackable - trackable
public int getNrTrackablesInZone()
public Zone getZone()
public void setZone(Zone zone)
zone - zonepublic void defineInvolvedTrackables()
defineInvolvedTrackables in class Conditionpublic void defineActiveTrackable()
defineActiveTrackable in class Condition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||