com.hammingweight.hammock.mocks.microedition.location
Class MockCoordinates

java.lang.Object
  extended by javax.microedition.location.Coordinates
      extended by com.hammingweight.hammock.mocks.microedition.location.MockCoordinates
All Implemented Interfaces:
IMockObject

public class MockCoordinates
extends javax.microedition.location.Coordinates
implements IMockObject


Field Summary
static MockMethod MTHD_AZIMUTH_TO_$_COORDINATES
           
static MockMethod MTHD_DISTANCE_$_COORDINATES
           
static MockMethod MTHD_GET_ALTITUDE
           
static MockMethod MTHD_GET_LATITUDE
           
static MockMethod MTHD_GET_LONGITUDE
           
static MockMethod MTHD_SET_ALTITUDE_$_FLOAT
           
static MockMethod MTHD_SET_LATITUDE_$_DOUBLE
           
static MockMethod MTHD_SET_LONGITUDE_$_DOUBLE
           
 
Fields inherited from class javax.microedition.location.Coordinates
DD_MM, DD_MM_SS
 
Constructor Summary
MockCoordinates(double arg0, double arg1, float arg2)
           
MockCoordinates(double arg0, double arg1, float arg2, IInvocationHandler handler)
           
 
Method Summary
 float azimuthTo(javax.microedition.location.Coordinates arg0)
           
 float distance(javax.microedition.location.Coordinates arg0)
           
 float getAltitude()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 double getLatitude()
           
 double getLongitude()
           
 void setAltitude(float arg0)
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setLatitude(double arg0)
           
 void setLongitude(double arg0)
           
 
Methods inherited from class javax.microedition.location.Coordinates
convert, convert
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_AZIMUTH_TO_$_COORDINATES

public static final MockMethod MTHD_AZIMUTH_TO_$_COORDINATES

MTHD_DISTANCE_$_COORDINATES

public static final MockMethod MTHD_DISTANCE_$_COORDINATES

MTHD_GET_ALTITUDE

public static final MockMethod MTHD_GET_ALTITUDE

MTHD_GET_LATITUDE

public static final MockMethod MTHD_GET_LATITUDE

MTHD_GET_LONGITUDE

public static final MockMethod MTHD_GET_LONGITUDE

MTHD_SET_ALTITUDE_$_FLOAT

public static final MockMethod MTHD_SET_ALTITUDE_$_FLOAT

MTHD_SET_LATITUDE_$_DOUBLE

public static final MockMethod MTHD_SET_LATITUDE_$_DOUBLE

MTHD_SET_LONGITUDE_$_DOUBLE

public static final MockMethod MTHD_SET_LONGITUDE_$_DOUBLE
Constructor Detail

MockCoordinates

public MockCoordinates(double arg0,
                       double arg1,
                       float arg2)

MockCoordinates

public MockCoordinates(double arg0,
                       double arg1,
                       float arg2,
                       IInvocationHandler handler)
Method Detail

setInvocationHandler

public final void setInvocationHandler(IInvocationHandler handler)
Description copied from interface: IMockObject
Sets the invocation handler that the mock object should use to evaluate method invocations.

Specified by:
setInvocationHandler in interface IMockObject
Parameters:
handler - The invocation handler to be used by the mock object.

getInvocationHandler

public final IInvocationHandler getInvocationHandler()
Description copied from interface: IMockObject
Gets the invocation handler that the mock object uses to evaluate method invocations.

Specified by:
getInvocationHandler in interface IMockObject
Returns:
The invocation handler used by the mock object.

azimuthTo

public float azimuthTo(javax.microedition.location.Coordinates arg0)
Overrides:
azimuthTo in class javax.microedition.location.Coordinates

distance

public float distance(javax.microedition.location.Coordinates arg0)
Overrides:
distance in class javax.microedition.location.Coordinates

getAltitude

public float getAltitude()
Overrides:
getAltitude in class javax.microedition.location.Coordinates

getLatitude

public double getLatitude()
Overrides:
getLatitude in class javax.microedition.location.Coordinates

getLongitude

public double getLongitude()
Overrides:
getLongitude in class javax.microedition.location.Coordinates

setAltitude

public void setAltitude(float arg0)
Overrides:
setAltitude in class javax.microedition.location.Coordinates

setLatitude

public void setLatitude(double arg0)
Overrides:
setLatitude in class javax.microedition.location.Coordinates

setLongitude

public void setLongitude(double arg0)
Overrides:
setLongitude in class javax.microedition.location.Coordinates