com.tractrac.clientmodule
Class ControlPoint

java.lang.Object
  extended by com.tractrac.clientmodule.details.Attachments
      extended by com.tractrac.clientmodule.details.IdBase
          extended by com.tractrac.clientmodule.details.IdBaseNamed
              extended by com.tractrac.clientmodule.ControlPoint

public class ControlPoint
extends IdBaseNamed

Encapsulates data related to a specific Control Point of a TracTrac Event.

An instance of this class has a unique id and a name. Furthermore it has a flag indicating whether it represents two buoys/marks or just one.

Custom data may be attached to each Control Point instance.

Use Event.addControlPoint(java.util.UUID, java.lang.String, boolean) to create a new Control Point.

Version:
2.0
Author:
TracTrac
See Also:
Event

Method Summary
 boolean getHasTwoPoints()
          Returns whether this Control Point represents two buoys/marks or just one.
 double getLat1()
          The static latutide of mark 1
 double getLat2()
          The static latutide of mark 2
 double getLon1()
          The static longitude of mark 1
 double getLon2()
          The static longitude of mark 2
static AttKey newAttKey()
          Creates a new (static) key to be used to set/get custom data related to control points.
 
Methods inherited from class com.tractrac.clientmodule.details.IdBaseNamed
getName, toString
 
Methods inherited from class com.tractrac.clientmodule.details.IdBase
equals, getId, hashCode
 
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

newAttKey

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

Returns:
a new key.

getHasTwoPoints

public boolean getHasTwoPoints()
Returns whether this Control Point represents two buoys/marks or just one.

Returns:
true if two points are associated, false otherwise.

getLat1

public double getLat1()
The static latutide of mark 1

Returns:
the latitude

getLat2

public double getLat2()
The static latutide of mark 2

Returns:
the lat2

getLon1

public double getLon1()
The static longitude of mark 1

Returns:
the lon1

getLon2

public double getLon2()
The static longitude of mark 2

Returns:
the lon2