|
||||||||||
| 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.CompetitorPositionOffsetData
public class CompetitorPositionOffsetData
An instance of this class represents an offset position for a Competitor.
The static method subscribe(com.tractrac.clientmodule.Race, 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)
|
double |
getOffset()
|
int |
hashCode()
|
static AttKey |
newAttKey()
|
static com.maptrack.client.io.TypeController |
subscribe(Race race,
ICallbackData<RaceCompetitor,CompetitorPositionOffsetData> callback,
long fromTime,
long toTime)
Subscribes to snapped competitor positions for a given Race. |
java.lang.String |
toString()
|
| 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 double getOffset()
public static com.maptrack.client.io.TypeController subscribe(Race race,
ICallbackData<RaceCompetitor,CompetitorPositionOffsetData> 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.
race - the race from which to request the datacallback - 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 TimeObjectpublic int hashCode()
hashCode in class TimeObjectpublic java.lang.String toString()
toString in class TimeObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||