Jeospace API

org.jeospace.navigation
Class DefaultPosition

java.lang.Object
  extended byorg.jeospace.navigation.DefaultPosition
All Implemented Interfaces:
Position, PositionControl

public class DefaultPosition
extends java.lang.Object
implements PositionControl

A trivial implementation of a PositionControl. This object is settable, but makes no changes to the set position coordinate.

Version:
$Revision: 1.2 $
Author:
Rex Melton
See Also:
Cartesian, Polar

Constructor Summary
DefaultPosition()
          Default Constructor
 
Method Summary
 void enablePosition(boolean enabled)
          Ignored
 void get(Cartesian cartesian)
          Return the position in the argument object.
 Polar getPolar()
          Return the position in a Polar coordinate object.
 void set(Polar polar)
          Set the position coordinate
 void updatePosition(double timeValue)
          Ignored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPosition

public DefaultPosition()
Default Constructor

Method Detail

get

public void get(Cartesian cartesian)
Return the position in the argument object.

Specified by:
get in interface Position
Parameters:
cartesian - The Cartesian coordinate object to initialize with the current position.

getPolar

public Polar getPolar()
Return the position in a Polar coordinate object.

Specified by:
getPolar in interface Position
Returns:
the position in a Polar coordinate object.

enablePosition

public void enablePosition(boolean enabled)
Ignored

Specified by:
enablePosition in interface Position
Parameters:
enabled - true if the object should update it's positioning data in response to update( ) calls, false if the object should NOT update it's positioning data in response to update( ) calls.

updatePosition

public void updatePosition(double timeValue)
Ignored

Specified by:
updatePosition in interface Position
Parameters:
timeValue - the time value for which to calculate the position

set

public void set(Polar polar)
Set the position coordinate

Specified by:
set in interface PositionControl
Parameters:
polar - The position coordinate

Jeospace API

Copyright © 2006 - jeospace.org