Interface that represents a set of geofences. More...

Inheritance diagram for SetOfGeofences:

Public Member Functions

String getId ()
 
List< GeofencegetGeofences () throws GeofencingNotAvailableException, GeofencingLowLevelException
 
GeofenceCircle addCircle (int id, String name, Boolean enabled, Point center, int radius) throws GeofencingNotAvailableException, GeofencingLowLevelException
 
GeofenceBufferedLine addBufferedLine (int id, String name, Boolean enabled, List< Point > points, int radius) throws GeofencingNotAvailableException, GeofencingLowLevelException
 
GeofencePolygon addPolygon (int id, String name, Boolean enabled, List< Point > points) throws GeofencingNotAvailableException, GeofencingLowLevelException
 
void removeGeofence (Geofence geofence) throws GeofencingNotAvailableException, GeofencingLowLevelException
 
- Public Member Functions inherited from Subject< T extends Observer< U, U extends Event >
void subscribe (T observer) throws CannotSubscribeException
 
void unSubscribe (T observer) throws ObserverNotSubscribedException
 

Detailed Description

Interface that represents a set of geofences

Member Function Documentation

GeofenceBufferedLine addBufferedLine ( int  id,
String  name,
Boolean  enabled,
List< Point points,
int  radius 
) throws GeofencingNotAvailableException, GeofencingLowLevelException

Adds a buffered line geofence in the set

Parameters
idid of the geofence
namename of the geofence
enabledtrue if geofence is enabled
pointslist of points that defines the line
radiusradius of the buffer
Returns
GeofenceBufferedLine object
Exceptions
GeofencingNotAvailableException
GeofencingLowLevelException
GeofenceCircle addCircle ( int  id,
String  name,
Boolean  enabled,
Point  center,
int  radius 
) throws GeofencingNotAvailableException, GeofencingLowLevelException

Adds a circle geofence in the set

Parameters
idid of the geofence
namename of the geofence
enabledtrue if geofence is enabled
centercenter of the geofence
radiusradius of the geofence
Returns
GeofenceCircle object
Exceptions
GeofencingNotAvailableException
GeofencingLowLevelException
GeofencePolygon addPolygon ( int  id,
String  name,
Boolean  enabled,
List< Point points 
) throws GeofencingNotAvailableException, GeofencingLowLevelException

Adds a polygon geofence in the set

Parameters
idid of the geofence
namename of the geofence
enabledtrue if geofence is enabled
pointslist of points that defines the polygon
Returns
GeofencePolygon object
Exceptions
GeofencingNotAvailableException
GeofencingLowLevelException

Returns list of geofences contained in the set

Returns
list of geofences contained in the set
Exceptions
GeofencingNotAvailableException
GeofencingLowLevelException
String getId ( )

Returns "set of geofences" id

Returns
void removeGeofence ( Geofence  geofence) throws GeofencingNotAvailableException, GeofencingLowLevelException

Removes a geofence from the set

Parameters
geofencegeofence to be removed
Exceptions
GeofencingNotAvailableException
GeofencingLowLevelException