org.ka2ddo.yaac.osm
Class Speed

java.lang.Object
  extended by org.ka2ddo.yaac.osm.Speed

public class Speed
extends java.lang.Object

This class defines a compound object containing a speed value and the units of speed.


Constructor Summary
Speed(int speed, DistanceUnit unit)
           
Speed(java.lang.String value)
           
 
Method Summary
 int getSpeed()
           
 DistanceUnit getUnit()
           
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Speed

public Speed(java.lang.String value)

Speed

public Speed(int speed,
             DistanceUnit unit)
Method Detail

getSpeed

public int getSpeed()

getUnit

public DistanceUnit getUnit()

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.