mil.af.afit.router
Class RestrictedOperatingZone

java.lang.Object
  |
  +--java.util.Observable
        |
        +--mil.af.afit.router.RestrictedOperatingZone
All Implemented Interfaces:
java.util.Observer, java.io.Serializable

public class RestrictedOperatingZone
extends java.util.Observable
implements java.util.Observer, java.io.Serializable

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.

Since:
1.0
See Also:
GeographicRegion, Site, Serialized Form

Constructor 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

RestrictedOperatingZone

public RestrictedOperatingZone()
Constructs a ROZ with no region.
Since:
1.0

RestrictedOperatingZone

public RestrictedOperatingZone(double[][] verticesLatLong)
Constructs a ROZ based on the latitude and longitude pairs given by verticesLatLong. This is a matrix whose first index represents the lat/lon pair and whose second index is zero for latitudes and one for longitudes.
Parameters:
verticesLatLong - vertices of ROZ
Since:
1.0
Method Detail

getName

public final java.lang.String getName()
Returns the name of the ROZ.
Returns:
name of the ROZ
Since:
1.0

getRegion

public final GeographicRegion getRegion()
Returns the geographic region of the ROZ.
Returns:
geographic region of the ROZ
Since:
1.0

getEarliestAllowedTime

public final int getEarliestAllowedTime()
Returns the beginning of the time window for the ROZ.
Returns:
beginning of the time window for the ROZ
Since:
1.0

getLatestAllowedTime

public final int getLatestAllowedTime()
Returns the ending of the time window for the ROZ.
Returns:
ending of the time window for the ROZ
Since:
1.0

getEarliestRestrictedTime

public final int getEarliestRestrictedTime()
Returns the beginning of the time wall for the ROZ.
Returns:
beginning of the time wall for the ROZ
Since:
1.0

getLatestRestrictedTime

public final int getLatestRestrictedTime()
Returns the ending of the time wall for the ROZ.
Returns:
ending of the time wall for the ROZ
Since:
1.0

setRegion

public final void setRegion(GeographicRegion region)
Sets the geographic region for the ROZ
Parameters:
region - geographic region for the ROZ
Since:
1.0
See Also:
GeographicRegion

setName

public final void setName(java.lang.String name)
Sets the name for the ROZ
Parameters:
name - name for the ROZ
Since:
1.0

setEarliestAllowedTime

public final void setEarliestAllowedTime(int time)
Sets the beginning of the time window for the ROZ.
Parameters:
time - beginning of the time window for the ROZ
Since:
1.0

setLatestAllowedTime

public final void setLatestAllowedTime(int time)
Sets the ending of the time window for the ROZ.
Parameters:
time - ending of the time window for the ROZ
Since:
1.0

setEarliestRestrictedTime

public final void setEarliestRestrictedTime(int time)
Sets the beginning of the time wall for the ROZ.
Parameters:
time - beginning of the time wall for the ROZ
Since:
1.0

setLatestRestrictedTime

public final void setLatestRestrictedTime(int time)
Sets the ending of the time wall for the ROZ.
Parameters:
time - ending of the time wall for the ROZ
Since:
1.0

contains

public final boolean contains(Site site)
Returns whether or not the site is in this ROZ.
Parameters:
site - site to check
Returns:
whether or not the site is in this ROZ
Since:
1.0
See Also:
Site

update

public void update(java.util.Observable thing,
                   java.lang.Object arg)
Listens for udpates and notifies observers
Specified by:
update in interface java.util.Observer