com.partnersoft.v3x.apps.StakingBuddy
Class StakingBuddyLocation

java.lang.Object
  extended by com.partnersoft.v3x.apps.StakingBuddy.StakingBuddyLocation
All Implemented Interfaces:
java.io.Serializable

public class StakingBuddyLocation
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
StakingBuddyLocation()
          Create a new StakingBuddyLocation.
 
Method Summary
 double getBearing()
          Bearing with respect to parent location.
 double getDeflection()
          Deflection angle with respect to parent span.
 java.lang.String getDescription()
          Description of location.
 double getDistance()
          Distance to parent location.
 java.lang.String getIsStation()
          Notification of Station.
 java.lang.String getKey()
          Name of location.
 double getLatitude()
          Latitude of point.
 java.util.Map getLocationInfo()
           
 java.util.ArrayList getLocationUnits()
           
 java.lang.String getLocationUnitsAsString()
           
 java.lang.String getLocationUnitsAsString(java.lang.String delimeter)
           
 double getLongitude()
          Longitude of point.
 double getMapx()
          Retieve the current value of map x for this instance.
 double getMapy()
          Get map y.
 java.lang.String getName()
          Name of location.
 java.lang.String getParentKey()
          Name of parent location.
 java.util.ArrayList getSpanUnits()
           
 java.lang.String getSpanUnitsAsString()
           
 java.lang.String getSpanUnitsAsString(java.lang.String delimeter)
           
 int getStakingBuddyGpsID()
           
 void measure(Projection projection, double offsetx, double offsety)
          Figures out (x, y) based on (latitude, longitude) and (mapx, mapy).
 void setBearing(double newBearing)
          Bearing with respect to parent location.
 void setDeflection(double newDeflection)
          Deflection angle with respect to parent span.
 void setDescription(java.lang.String newDescription)
          Description of location.
 void setDistance(double newDistance)
          Distance to parent location.
 void setIsStation(java.lang.String newIsStation)
          Notification of Station.
 void setKey(java.lang.String newKey)
          Name of location.
 void setLatitude(double newLatitude)
          Latitude of point.
 void setLocationInfo(java.util.Map locationInfo)
           
 void setLocationUnits(java.util.ArrayList newUnits)
           
 void setLongitude(double newLongitude)
          Longitude of point.
 void setMapx(double newMapx)
          Copied from the mapset, although be careful because it's copied from the highlight data which is stored as imprecise 32-bit floats.
 void setMapy(double newMapy)
          Mapy sounds like an adjective, doesn't it?
 void setName(java.lang.String newName)
          Name of location.
 void setParentKey(java.lang.String newParentKey)
          Name of parent location.
 void setSpanUnits(java.util.ArrayList newUnits)
           
 void setStakingBuddyLocationID(int stakingBuddyLocationID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StakingBuddyLocation

public StakingBuddyLocation()
Create a new StakingBuddyLocation.

Method Detail

getBearing

public double getBearing()
Bearing with respect to parent location.


setBearing

public void setBearing(double newBearing)
Bearing with respect to parent location.


getDeflection

public double getDeflection()
Deflection angle with respect to parent span.


setDeflection

public void setDeflection(double newDeflection)
Deflection angle with respect to parent span.


getDescription

public java.lang.String getDescription()
Description of location.


setDescription

public void setDescription(java.lang.String newDescription)
Description of location.


getDistance

public double getDistance()
Distance to parent location. This seems to show up in the point's data, but nowhere else. The Field Designer calculates the distance based on the projected points. In Staking Buddy, the distance is approximated. In the Mobile Staker, the distance is calculated based on Mobile Staker's projection.


setDistance

public void setDistance(double newDistance)
Distance to parent location.


getLatitude

public double getLatitude()
Latitude of point.


setLatitude

public void setLatitude(double newLatitude)
Latitude of point.


getLocationInfo

public java.util.Map getLocationInfo()

setLocationInfo

public void setLocationInfo(java.util.Map locationInfo)

getLongitude

public double getLongitude()
Longitude of point.


setLongitude

public void setLongitude(double newLongitude)
Longitude of point.


setMapx

public void setMapx(double newMapx)
Copied from the mapset, although be careful because it's copied from the highlight data which is stored as imprecise 32-bit floats. Spherical coordinates take precedence over state plane coordinates, but state plane coordinates might be all we have if there's no projection. See StakingBuddyData for how we put the point on a map.


getMapx

public double getMapx()
Retieve the current value of map x for this instance.


setMapy

public void setMapy(double newMapy)
Mapy sounds like an adjective, doesn't it?


getMapy

public double getMapy()
Get map y.


measure

public void measure(Projection projection,
                    double offsetx,
                    double offsety)
Figures out (x, y) based on (latitude, longitude) and (mapx, mapy).


getName

public java.lang.String getName()
Name of location.


setName

public void setName(java.lang.String newName)
Name of location.


getKey

public java.lang.String getKey()
Name of location.


setKey

public void setKey(java.lang.String newKey)
Name of location.


getParentKey

public java.lang.String getParentKey()
Name of parent location.


setParentKey

public void setParentKey(java.lang.String newParentKey)
Name of parent location.


getLocationUnits

public java.util.ArrayList getLocationUnits()

setLocationUnits

public void setLocationUnits(java.util.ArrayList newUnits)

getSpanUnits

public java.util.ArrayList getSpanUnits()

setSpanUnits

public void setSpanUnits(java.util.ArrayList newUnits)

getIsStation

public java.lang.String getIsStation()
Notification of Station.


setIsStation

public void setIsStation(java.lang.String newIsStation)
Notification of Station.


getLocationUnitsAsString

public java.lang.String getLocationUnitsAsString(java.lang.String delimeter)

getSpanUnitsAsString

public java.lang.String getSpanUnitsAsString(java.lang.String delimeter)

getLocationUnitsAsString

public java.lang.String getLocationUnitsAsString()

getSpanUnitsAsString

public java.lang.String getSpanUnitsAsString()

getStakingBuddyGpsID

public int getStakingBuddyGpsID()

setStakingBuddyLocationID

public void setStakingBuddyLocationID(int stakingBuddyLocationID)