jadex.swing.map
Class AbstractMapPoint

java.lang.Object
  |
  +--jadex.swing.map.AbstractMapPoint
All Implemented Interfaces:
MapPoint

public class AbstractMapPoint
extends java.lang.Object
implements MapPoint

Default implementation of MapPoint.


Constructor Summary
AbstractMapPoint()
          Default constructor.
AbstractMapPoint(java.lang.String name, float pos)
          An overloaded construcor.
 
Method Summary
 float getError()
          Get the error of this position.
 java.lang.String getName()
          Get the name of this MapPoint.
 float getPosition()
          Get the position of this MapPoint.
 void setError(float err)
          Set the error of the position.
 void setName(java.lang.String name)
          Set the name of this MapPoint.
 void setPosition(float position)
          Set the position of this MapPoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMapPoint

public AbstractMapPoint()
Default constructor.

AbstractMapPoint

public AbstractMapPoint(java.lang.String name,
                        float pos)
An overloaded construcor.
Parameters:
name - the name of the MapPoint.
pos - the position of the MapPoint
Method Detail

getName

public java.lang.String getName()
Get the name of this MapPoint.
Specified by:
getName in interface MapPoint
Returns:
the name of this MapPoint.

getPosition

public float getPosition()
                  throws UnknownPositionException
Get the position of this MapPoint.
Specified by:
getPosition in interface MapPoint
Returns:
this position of this MapPoint.

setName

public void setName(java.lang.String name)
Set the name of this MapPoint.
Specified by:
setName in interface MapPoint
Parameters:
name - the name of this MapPoint.

setPosition

public void setPosition(float position)
Set the position of this MapPoint.
Specified by:
setPosition in interface MapPoint
Parameters:
position - the position of this MapPoint.

setError

public void setError(float err)
Set the error of the position. Do nothin in this implementation.
Specified by:
setError in interface MapPoint
Following copied from interface: jadex.swing.map.MapPoint
Parameters:
err - the error of the position

getError

public float getError()
Get the error of this position. Get 0.0 as the default value.
Specified by:
getError in interface MapPoint
Following copied from interface: jadex.swing.map.MapPoint
Returns:
the error of the position of the MapPoint.