|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.devices.gps.services.AreaAlarm
public class AreaAlarm
This class implements an AreaAlarm-service. The class allows the user to specify two positions, which will be used as opposite corners in a rectangular area. Whenever the GPS enters or exits the area all listeners are notified through the IAlarmListener-interface.
| Constructor Summary | |
|---|---|
AreaAlarm(GPS g,
Position p1,
Position p2)
Creates a new AreaAlarm object. |
|
| Method Summary | |
|---|---|
void |
addAlarmListener(IAlarmListener l)
Adds l to the list of listeners interested in receiving notification when the GPS enters or exits the area. |
void |
dateReceived(IDate d)
DOCUMENT ME! |
protected void |
fireInside()
This method propagates the information that the gps has entered the area to all listeners. |
protected void |
fireOutside()
This method propagates the information that the gps has exited the area to all listeners. |
void |
positionReceived(IPosition pos)
DOCUMENT ME! |
void |
removeAlarmListener(IAlarmListener l)
Removes the the Alarm-listener l from the list of Waypoint-listeners. |
void |
timeReceived(ITime t)
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AreaAlarm(GPS g,
Position p1,
Position p2)
g - DOCUMENT ME!p1 - DOCUMENT ME!p2 - DOCUMENT ME!| Method Detail |
|---|
public void addAlarmListener(IAlarmListener l)
l - DOCUMENT ME!public void removeAlarmListener(IAlarmListener l)
l - DOCUMENT ME!protected void fireOutside()
protected void fireInside()
public void timeReceived(ITime t)
timeReceived in interface IGPSlistenert - DOCUMENT ME!public void dateReceived(IDate d)
dateReceived in interface IGPSlistenerd - DOCUMENT ME!public void positionReceived(IPosition pos)
positionReceived in interface IGPSlistenerpos - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||