|
|||||||
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.Wind
A simple wind model that stores speed, direction, and lower and upper altitudes. Vehicle altitudes are matched up with wind altitudes when calculating travel times.
Vehicle
,
WindList
, Serialized FormConstructor Summary | |
Wind()
Constructs a wind with default values. |
|
Wind(int speed)
Constructs a wind with the specified speed. |
|
Wind(int speed,
int bearing)
Constructs a wind with the specified speed and bearing. |
Method Summary | |
int |
getBearing()
Returns the wind's bearing. |
int |
getLowerAltitude()
Returns the wind's lower Altitude. |
int |
getSpeed()
Returns the wind's speed. |
int |
getUpperAltitude()
Returns the wind's upper Altitude. |
void |
setBearing(int bearing)
Sets the wind's bearing. |
void |
setLowerAltitude(int lower)
Sets the wind's lower altitude. |
void |
setSpeed(int speed)
Sets the wind's speed. |
void |
setUpperAltitude(int upper)
Sets the wind's upper altitude. |
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, toString, wait, wait, wait |
Constructor Detail |
public Wind()
public Wind(int speed)
speed
- wind speed (in knots)public Wind(int speed, int bearing)
speed
- wind speed (in knots)bearin
- wind bearing (in degrees clockwise from north)Method Detail |
public final int getSpeed()
public final int getBearing()
public final int getUpperAltitude()
public final int getLowerAltitude()
public final void setSpeed(int speed)
speed
- the wind's speed (in knots)public final void setBearing(int bearing)
bearing
- the wind's bearing (in degrees clockwise from north)public final void setLowerAltitude(int lower)
lower
- the wind's lower altitude (in feet)public final void setUpperAltitude(int upper)
upper
- the wind's upper altitude (in feet)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |