|
|||||||
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.RestrictedOperatingZone
A restricted operating zone (ROZ) is a geographic region that may have a collective time window or time wall. A user can specify these restrictions for the entire area and assign the time window/wall values to all of the sites.
GeographicRegion
,
Site
, Serialized FormConstructor Summary | |
RestrictedOperatingZone()
Constructs a ROZ with no region. |
|
RestrictedOperatingZone(double[][] verticesLatLong)
Constructs a ROZ based on the latitude and longitude pairs given by verticesLatLong. |
Method Summary | |
boolean |
contains(Site site)
Returns whether or not the site is in this ROZ. |
int |
getEarliestAllowedTime()
Returns the beginning of the time window for the ROZ. |
int |
getEarliestRestrictedTime()
Returns the beginning of the time wall for the ROZ. |
int |
getLatestAllowedTime()
Returns the ending of the time window for the ROZ. |
int |
getLatestRestrictedTime()
Returns the ending of the time wall for the ROZ. |
java.lang.String |
getName()
Returns the name of the ROZ. |
GeographicRegion |
getRegion()
Returns the geographic region of the ROZ. |
void |
setEarliestAllowedTime(int time)
Sets the beginning of the time window for the ROZ. |
void |
setEarliestRestrictedTime(int time)
Sets the beginning of the time wall for the ROZ. |
void |
setLatestAllowedTime(int time)
Sets the ending of the time window for the ROZ. |
void |
setLatestRestrictedTime(int time)
Sets the ending of the time wall for the ROZ. |
void |
setName(java.lang.String name)
Sets the name for the ROZ |
void |
setRegion(GeographicRegion region)
Sets the geographic region for the ROZ |
void |
update(java.util.Observable thing,
java.lang.Object arg)
Listens for udpates and notifies observers |
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 RestrictedOperatingZone()
public RestrictedOperatingZone(double[][] verticesLatLong)
verticesLatLong
- vertices of ROZMethod Detail |
public final java.lang.String getName()
public final GeographicRegion getRegion()
public final int getEarliestAllowedTime()
public final int getLatestAllowedTime()
public final int getEarliestRestrictedTime()
public final int getLatestRestrictedTime()
public final void setRegion(GeographicRegion region)
region
- geographic region for the ROZGeographicRegion
public final void setName(java.lang.String name)
name
- name for the ROZpublic final void setEarliestAllowedTime(int time)
time
- beginning of the time window for the ROZpublic final void setLatestAllowedTime(int time)
time
- ending of the time window for the ROZpublic final void setEarliestRestrictedTime(int time)
time
- beginning of the time wall for the ROZpublic final void setLatestRestrictedTime(int time)
time
- ending of the time wall for the ROZpublic final boolean contains(Site site)
site
- site to checkSite
public void update(java.util.Observable thing, java.lang.Object arg)
update
in interface java.util.Observer
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |