|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--hw6.TransitBusEvent
This class implements a simple event that is fired whenever a new TransitBus position record is received.
Field Summary |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
TransitBusEvent(java.lang.Object src,
java.lang.String tv,
int vin,
double lat,
double lon,
int route)
Create a new TransitBusEvent. |
Method Summary | |
double |
getLat()
Get the latitude value |
double |
getLon()
Get the longitude value |
int |
getRoute()
Get the current route number |
java.lang.String |
getTimeValue()
Get the time value string. |
int |
getVIN()
Get the vehicle identification number. |
java.lang.String |
toString()
return a String describing this event |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TransitBusEvent(java.lang.Object src, java.lang.String tv, int vin, double lat, double lon, int route)
src
- the object creating this eventtv
- the time value String associated with this updatevin
- the Vehicle ID number for this buslat
- the latitude for this buslon
- the longitude for this busroute
- the route number for this busMethod Detail |
public java.lang.String getTimeValue()
public int getVIN()
public double getLat()
public double getLon()
public int getRoute()
public java.lang.String toString()
toString
in class java.util.EventObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |