|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.nas.sector.Sector
public class Sector
Contains information on sectors (controller areas of responsibility, denoted by frequency).See the source: Sector.java
GeoSector,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
static java.text.DecimalFormat |
DEC000
Number format for flight level output: "000". |
static java.lang.String |
ENROUTE_TERMINAL
Sector type Enroute_Terminal |
private java.util.List<Frequency> |
freqList
OBSOLETE: delete when no longer need recordings made before 5/20/2008. |
protected java.util.Vector<Frequency> |
frequencies
The frequencies belonging to this sector: the first frequency in the list is the primary frequency. |
protected static MethodMap |
methodMap
|
static java.lang.String |
OCEANIC
Sector type Oceanic |
protected java.util.ArrayList<SectorAction> |
sectorActions
|
protected SectorID |
sectorID
SectorID contains a two digit number that identifies the sector. |
protected SectorName |
sectorName
SectorName contains a name used to identify the sector: it can be more descriptive than the sectorID if desired. |
protected java.lang.String |
sectorType
Airspace type of sector. |
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
Sector(SectorID sectorID)
Constructor for Sector without Frequency. |
|
Sector(SectorID sectorID,
SectorName sectorName)
Constructor for Sector without Frequency. |
|
Sector(SectorID sectorID,
SectorName sectorName,
Frequency primaryFreq)
Constructor for Sector: specifies the sector ID, the sector name, and the primary sector frequency. |
|
| Method Summary | |
|---|---|
void |
addAction(SectorAction sectorAction)
Adds an action to the actionList for this sector. |
void |
addFrequency(Frequency frequency)
Add a (Voice) Frequency to the the Sector |
java.lang.Object |
clone()
Clones the sector. |
boolean |
contains(Frequency frequency)
Returns true if this sector contains the given Frequency Needs to check complete list |
boolean |
equals(Sector other)
Returns whether this Sector is the same as another sector (checks if SectorNames are equal). |
void |
executeActions(Aircraft ac,
SimEventMgr eventMgr)
|
java.util.Vector<Frequency> |
getFrequencies()
Returns all frequencies this sector possess. |
MethodMap |
getMethodMap()
Returns Sector field/values as a MethodMap (used by DelimWriter). |
java.lang.String |
getName()
Returns the sector ID as a name String (unique identifier). |
Frequency |
getPrimaryFrequency()
Returns the first frequency element in the sector's frequencyList. |
Sector |
getSector()
Returns this Object to meet the HasSector interface requirements. |
SectorID |
getSectorID()
Returns the sector identifier as a SectorID. |
SectorName |
getSectorName()
Returns the Sector name as a SectorName. |
java.lang.String |
getSectorType()
Returns the String sector type. |
protected static MethodMap |
makeMethodMap()
Returns the Sector information in DelimWritable format. |
int |
numberOfFreqs()
Returns the number of frequencies this sector has in its freqList. |
private void |
readObject(java.io.ObjectInputStream in)
Set sector ID and name if not defined. |
void |
setSectorType(java.lang.String sectorType)
Set sector type. |
java.lang.String |
toDraText()
Returns the Sector information as a DR&A text String. |
java.lang.String |
toString()
Returns the sector description as a String. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
public static final java.text.DecimalFormat DEC000
public static final java.lang.String OCEANIC
public static final java.lang.String ENROUTE_TERMINAL
protected SectorName sectorName
protected SectorID sectorID
protected java.util.Vector<Frequency> frequencies
private final java.util.List<Frequency> freqList
protected java.util.ArrayList<SectorAction> sectorActions
protected java.lang.String sectorType
protected static MethodMap methodMap
| Constructor Detail |
|---|
public Sector(SectorID sectorID,
SectorName sectorName,
Frequency primaryFreq)
sectorID - Object with two-digit number that identifies the sector.sectorName - Descriptive name object that identifies the sector.primaryFreq - Primary frequency associated with the sector.public Sector(SectorID sectorID)
sectorID - Two letter identifier of sector.
public Sector(SectorID sectorID,
SectorName sectorName)
sectorID - Two letter identifier of sector.sectorName - Descriptive name object that identifies the sector.| Method Detail |
|---|
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionpublic SectorID getSectorID()
public SectorName getSectorName()
public Sector getSector()
getSector in interface HasSectorpublic java.lang.String getSectorType()
public void setSectorType(java.lang.String sectorType)
public int numberOfFreqs()
public void addFrequency(Frequency frequency)
public Frequency getPrimaryFrequency()
public java.util.Vector<Frequency> getFrequencies()
public java.lang.String getName()
getName in interface DraStorablegetName in interface ManagedObjectpublic java.lang.Object clone()
clone in interface DraStorableclone in class java.lang.Objectpublic boolean equals(Sector other)
other - The other Sector to compare to.
public boolean contains(Frequency frequency)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toDraText()
toDraText in interface TextWritablepublic void addAction(SectorAction sectorAction)
public void executeActions(Aircraft ac,
SimEventMgr eventMgr)
public MethodMap getMethodMap()
getMethodMap in interface DelimWritableprotected static MethodMap makeMethodMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||