com.eurotech.framework.protocol.pcn
Class VehicleMotionEvent

java.lang.Object
  extended by com.eurotech.framework.protocol.pcn.VehicleMotionEvent

public class VehicleMotionEvent
extends Object

Defines vehicle motion event.

Author:
ilya.binshtok

Field Summary
static int NONE
           
static int START
           
static int STOP
           
 
Constructor Summary
VehicleMotionEvent(int event, double speed, Calendar timestamp, double latitude, double longitude, int countInfoAlgorythm)
          VehicleMotionEvent constructor
 
Method Summary
 int getCountInfoAlgorythm()
          Reports 'count information' algorithm used.
 int getEvent()
          Reports vehicle motion event.
 double getLatitude()
          Reports latitude.
 double getLongitude()
          Reports longitude.
 double getSpeed()
          Reports vehicle speed.
 Calendar getTimestamp()
          Reports time stamp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

STOP

public static final int STOP
See Also:
Constant Field Values

START

public static final int START
See Also:
Constant Field Values
Constructor Detail

VehicleMotionEvent

public VehicleMotionEvent(int event,
                          double speed,
                          Calendar timestamp,
                          double latitude,
                          double longitude,
                          int countInfoAlgorythm)
VehicleMotionEvent constructor

Parameters:
event - - vehicle movement event as int
speed - - vehicle speed as double
timestamp - - time stamp as Calendar
latitude - - latitude as double
longitude - - longitude as double
countInfoAlgorythm - - count info algorithm as int
Method Detail

getEvent

public int getEvent()
Reports vehicle motion event.

Returns:
vehicle motion event as int

getSpeed

public double getSpeed()
Reports vehicle speed.

Returns:
vehicle speed as double

getTimestamp

public Calendar getTimestamp()
Reports time stamp.

Returns:
time stamp as Calendar

getLatitude

public double getLatitude()
Reports latitude.

Returns:
latitude as double

getLongitude

public double getLongitude()
Reports longitude.

Returns:
longitude as double

getCountInfoAlgorythm

public int getCountInfoAlgorythm()
Reports 'count information' algorithm used.

Returns:
count information' algorithm used as int


Copyright © 2013. All Rights Reserved.