|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tractrac.clientmodule.details.Attachments
com.tractrac.clientmodule.data.TimeObject
com.tractrac.clientmodule.data.Position
com.tractrac.clientmodule.data.ControlPointPositionData
public class ControlPointPositionData
An instance of this class represents a position for a Control Point (or one of its two buoys/marks).
The static method subscribe(com.tractrac.clientmodule.Event, com.tractrac.clientmodule.data.ICallbackData can be used to receive positions.
Custom data may be attached to each position instance.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getIndex()
Returns the index (0 or 1) of the buoy/mark that this position represents |
int |
hashCode()
|
static AttKey |
newAttKey()
|
static com.maptrack.client.io.TypeController |
subscribe(Event event,
ICallbackData<ControlPoint,ControlPointPositionData> callback,
long fromTime,
long toTime)
Subscribes to control point positions for a given Event. |
java.lang.String |
toString()
|
| Methods inherited from class com.tractrac.clientmodule.data.Position |
|---|
getDirection, getHeight, getLatitude, getLongitude, getSpeed |
| Methods inherited from class com.tractrac.clientmodule.data.TimeObject |
|---|
compareTo, getTimestamp |
| Methods inherited from class com.tractrac.clientmodule.details.Attachments |
|---|
getAttachment, setAttachment |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static AttKey newAttKey()
public int getIndex()
public static com.maptrack.client.io.TypeController subscribe(Event event,
ICallbackData<ControlPoint,ControlPointPositionData> callback,
long fromTime,
long toTime)
The method returns immediately and the positions are subsequently sent to a given callback, as they are received.
The returned type controller should be added to a DataController.
event - the event from which to request the data.callback - the callback to receive the positionsfromTime - stored positions (if supported) will be requested from this timetoTime - stored positions (if supported) will be requested before this time
public boolean equals(java.lang.Object obj)
equals in class Positionpublic int hashCode()
hashCode in class Positionpublic java.lang.String toString()
toString in class Position
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||