com.tractrac.clientmodule.data
Class CompetitorPositionOffsetData
java.lang.Object
com.tractrac.clientmodule.details.Attachments
com.tractrac.clientmodule.data.TimeObject
com.tractrac.clientmodule.data.CompetitorPositionOffsetData
- All Implemented Interfaces:
- java.lang.Comparable<TimeObject>
public class CompetitorPositionOffsetData
- extends TimeObject
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, long, long) can be used to receive positions.
Custom data may be attached to each position instance.
- Version:
- 2.0
- Author:
- TracTrac
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
newAttKey
public static AttKey newAttKey()
getOffset
public double getOffset()
subscribe
public 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.
The method returns immediately and the positions are subsequently sent to a given callback,
as they are received.
- Parameters:
race - the race from which to request the data.callback - the callback to receive the positions.fromTime - stored positions (if supported) will be requested from this time and forward.
The value 0 is allowed and means all historic data.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class TimeObject
hashCode
public int hashCode()
- Overrides:
hashCode in class TimeObject
toString
public java.lang.String toString()
- Overrides:
toString in class TimeObject