org.csapi.jr.se.mm
Class LocationTrigger

java.lang.Object
  |
  +--org.csapi.jr.se.mm.LocationTrigger
All Implemented Interfaces:
java.io.Serializable

public final class LocationTrigger
extends java.lang.Object
implements java.io.Serializable

Defines the Sequence of Data Elements that specify the criteria for a triggered location report to be generated. The area is defined by an ellipse.

See Also:
Serialized Form

Constructor Summary
LocationTrigger()
          Creates a new LocationTrigger instance.
LocationTrigger(float _longitude, float _latitude, float _areaSemiMajor, float _areaSemiMinor, int _angleOfSemiMajor, org.csapi.jr.se.mm.LocationTriggerCriteria _criterion, int _reportingInterval)
          Creates a new LocationTrigger instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 int getAngleOfSemiMajor()
          This method returns a angleOfSemiMajor.
 float getAreaSemiMajor()
          This method returns a areaSemiMajor.
 float getAreaSemiMinor()
          This method returns a areaSemiMinor.
 org.csapi.jr.se.mm.LocationTriggerCriteria getCriterion()
          This method returns a criterion.
 float getLatitude()
          This method returns a latitude.
 float getLongitude()
          This method returns a longitude.
 int getReportingInterval()
          This method returns a reportingInterval.
 int hashCode()
          Returns a hashcode value for the object.
 void setAngleOfSemiMajor(int angleOfSemiMajor)
          This method sets a angleOfSemiMajor.
 void setAreaSemiMajor(float areaSemiMajor)
          This method sets a areaSemiMajor.
 void setAreaSemiMinor(float areaSemiMinor)
          This method sets a areaSemiMinor.
 void setCriterion(org.csapi.jr.se.mm.LocationTriggerCriteria criterion)
          This method sets a criterion.
 void setLatitude(float latitude)
          This method sets a latitude.
 void setLongitude(float longitude)
          This method sets a longitude.
 void setReportingInterval(int reportingInterval)
          This method sets a reportingInterval.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationTrigger

public LocationTrigger()
Creates a new LocationTrigger instance.


LocationTrigger

public LocationTrigger(float _longitude,
                       float _latitude,
                       float _areaSemiMajor,
                       float _areaSemiMinor,
                       int _angleOfSemiMajor,
                       org.csapi.jr.se.mm.LocationTriggerCriteria _criterion,
                       int _reportingInterval)
Creates a new LocationTrigger instance.

Parameters:
_longitude - Longitude of the position used in the trigger.
_latitude - Latitude of the position used in the trigger.
_areaSemiMajor - Semi major of ellipse area used in the trigger.
_areaSemiMinor - Semi minor of ellipse area used in the trigger.
_angleOfSemiMajor - Angle of the semi major of the ellipse area used in the trigger.
_criterion - Trigger criteria with regard to the ellipse area.
_reportingInterval - Duration between generated location reports.
Method Detail

getLongitude

public float getLongitude()
This method returns a longitude.

Returns:
a float value

getLatitude

public float getLatitude()
This method returns a latitude.

Returns:
a float value

getAreaSemiMajor

public float getAreaSemiMajor()
This method returns a areaSemiMajor.

Returns:
a float value

getAreaSemiMinor

public float getAreaSemiMinor()
This method returns a areaSemiMinor.

Returns:
a float value

getAngleOfSemiMajor

public int getAngleOfSemiMajor()
This method returns a angleOfSemiMajor.

Returns:
a int value

getCriterion

public org.csapi.jr.se.mm.LocationTriggerCriteria getCriterion()
This method returns a criterion.

Returns:
a org.csapi.jr.se.mm.LocationTriggerCriteria value

getReportingInterval

public int getReportingInterval()
This method returns a reportingInterval.

Returns:
a int value

setLongitude

public void setLongitude(float longitude)
This method sets a longitude.


setLatitude

public void setLatitude(float latitude)
This method sets a latitude.


setAreaSemiMajor

public void setAreaSemiMajor(float areaSemiMajor)
This method sets a areaSemiMajor.


setAreaSemiMinor

public void setAreaSemiMinor(float areaSemiMinor)
This method sets a areaSemiMinor.


setAngleOfSemiMajor

public void setAngleOfSemiMajor(int angleOfSemiMajor)
This method sets a angleOfSemiMajor.


setCriterion

public void setCriterion(org.csapi.jr.se.mm.LocationTriggerCriteria criterion)
This method sets a criterion.


setReportingInterval

public void setReportingInterval(int reportingInterval)
This method sets a reportingInterval.


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hashcode value for the object.

Overrides:
hashCode in class java.lang.Object