com.tractrac.clientmodule
Class RaceCompetitor

java.lang.Object
  extended by com.tractrac.clientmodule.details.Attachments
      extended by com.tractrac.clientmodule.RaceCompetitor

public class RaceCompetitor
extends Attachments

Encapsulates data related to a specific Competitor of a specific Race.

An instance of this class is linked to a Competitor and a Race. Furthermore, it may be linked to a Route.

Custom data may be attached to each Race Competitor instance.

Use Race.getRaceCompetitor(com.tractrac.clientmodule.Competitor) to get the Race Competitor for a specific Competitor or Race.getRaceCompetitorList() to get a list of them all.

Version:
2.0
Author:
TracTrac
See Also:
Race, Competitor, Route

Method Summary
 boolean equals(java.lang.Object other)
           
 Competitor getCompetitor()
           
 Race getRace()
           
 Route getRoute()
           
 int hashCode()
           
static AttKey newAttKey()
          Creates a new (static) key to be used to set/get custom data related to race competitors.
 void setRoute(Route route)
           
 
Methods inherited from class com.tractrac.clientmodule.details.Attachments
getAttachment, setAttachment
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newAttKey

public static AttKey newAttKey()
Creates a new (static) key to be used to set/get custom data related to race competitors.

Returns:
a new key.

getRace

public Race getRace()

getCompetitor

public Competitor getCompetitor()

setRoute

public void setRoute(Route route)

getRoute

public Route getRoute()

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object