|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--mil.af.afit.router.Base
A base is associated with vehicles as a way to determine where the vehicles leave from and return to. A vehicle may actual depart from a latitude and longitude other than that of the base, if the vehicle is designated as being "Not at home."
BaseList
,
Vehicle
, Serialized FormConstructor Summary | |
Base()
Constructs a base with a default untitled name and latitudes and longitude equal to zero. |
|
Base(java.lang.String name,
double latitude,
double longitude)
Constructs a base from a name and a latitude and longitude. |
Method Summary | |
double |
getLatitude()
Returns the latitude of the base. |
double |
getLongitude()
Returns the longitude of the base. |
java.lang.String |
getName()
Returns the name of the base |
void |
setLatitude(double latitude)
Sets the latitude of the base and notifies registered Observer s. |
void |
setLongitude(double longitude)
Sets the longitude of the base and notifies registered Observer s. |
void |
setName(java.lang.String name)
Sets the name of the base and notifies registered Observer s. |
java.lang.String |
toString()
|
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Base(java.lang.String name, double latitude, double longitude)
name
- Name of the baselatitude
- Latitude of the baselongitude
- Longitude of the basepublic Base()
Method Detail |
public final java.lang.String getName()
public final double getLatitude()
public final double getLongitude()
public final void setName(java.lang.String name)
Observer
s.
The BaseList
is registered as an Observer
so
listening for changes to the list will also alert you to changes in
individual bases.BaseList
,
Observer
public final void setLatitude(double latitude)
Observer
s.
The BaseList
is registered as an Observer
so
listening for changes to the list will also alert you to changes in
individual bases.BaseList
,
Observer
public final void setLongitude(double longitude)
Observer
s.
The BaseList
is registered as an Observer
so
listening for changes to the list will also alert you to changes in
individual bases.BaseList
,
Observer
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |