ru.igis.omtab
Class Tow

java.lang.Object
  extended by ru.igis.omtab.Tow

public class Tow
extends java.lang.Object

Class supporting tow functionallity

Author:
ru

Field Summary
static double Pim2
          whole circle in radians
 
Constructor Summary
Tow(MapOb mo, double a, double d, boolean r)
          Constructor with simple type parameters
Tow(MapOb mo, java.lang.Float a, java.lang.Float d, java.lang.Boolean r)
          Constructor with all Object type parameters
 
Method Summary
 MapOb getMapOb()
          Method to get towed object
 void setAngle(double deg)
          Method to change angle from towing object to towed object
 void setDistance(double nm)
          Method to change distance from towing object to towed object
 void setRelative(boolean r)
          Method to change relativeness of rotation angle of towed object
 void tow(double lat, double lon)
          Method of movement of towed object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Pim2

public static double Pim2
whole circle in radians

Constructor Detail

Tow

public Tow(MapOb mo,
           java.lang.Float a,
           java.lang.Float d,
           java.lang.Boolean r)
Constructor with all Object type parameters

Parameters:
mo - - Map Object to put on tow
a - - angle from Towing object on towed object in degrees
d - - distance from Towing object on towed object in NM
r - - is towed object must change rotation angle synchronously with towing object

Tow

public Tow(MapOb mo,
           double a,
           double d,
           boolean r)
Constructor with simple type parameters

Parameters:
mo - - Map Object to put on tow
a - - angle from Towing object on towed object in degrees
d - - distance from Towing object on towed object in NM
r - is towed object must change rotation angle synchronously with towing object
Method Detail

tow

public void tow(double lat,
                double lon)
Method of movement of towed object

Parameters:
lat - - latitude in degrees
lon - - longitude in degrees

getMapOb

public MapOb getMapOb()
Method to get towed object

Returns:
- Map Object

setAngle

public void setAngle(double deg)
Method to change angle from towing object to towed object

Parameters:
deg - - new angle in degrees

setDistance

public void setDistance(double nm)
Method to change distance from towing object to towed object

Parameters:
nm - - new distance in NM

setRelative

public void setRelative(boolean r)
Method to change relativeness of rotation angle of towed object

Parameters:
r - - new relative flag