faa.tg.map
Class Map

java.lang.Object
  extended by faa.tg.map.Map
All Implemented Interfaces:
HasName, Filterable, ManagedObject, java.io.Serializable

public class Map
extends java.lang.Object
implements HasName

  This class defines Map which holds information about a map
  

Version:
$Id: Map.java,v 3.2 2008/06/04 14:52:24 johnd Exp $
Author:
Sam Fullerton, Titan See the source: Map.java
See Also:
Serialized Form

Field Summary
private  java.util.List<MapArc> arcs
           
private  Position center
           
static java.lang.String CVS_VERSION_ID
          CVS Version
private  java.util.List<MapLine> lines
           
private  MapName mapName
           
(package private) static long serialVersionUID
           
private  java.util.List<MapSymbol> symbols
           
 
Constructor Summary
Map(MapName mapName)
          Constructor
 
Method Summary
 void addMapArc(MapArc mapArc)
           
 void addMapLine(MapLine mapLine)
           
 void addMapSymbol(MapSymbol mapSymbol)
           
 Position getCenter()
          returns the center of this map
 java.util.Iterator<MapArc> getMapArcsIterator()
           
 java.util.Iterator<MapLine> getMapLinesIterator()
          returns an iterator of the lines of this map
 MapName getMapName()
           
 java.util.Iterator<MapSymbol> getMapSymbolsIterator()
          returns an iterator of the symbols of this map
 java.lang.String getName()
          Required in order to implement has name interface returns the name of this map
 void setCenter(Position center)
          sets the center of this map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
CVS Version

See Also:
Constant Field Values

mapName

private MapName mapName

center

private Position center

lines

private java.util.List<MapLine> lines

arcs

private java.util.List<MapArc> arcs

symbols

private java.util.List<MapSymbol> symbols
Constructor Detail

Map

public Map(MapName mapName)
Constructor

Parameters:
name - - name of the map
Method Detail

getName

public java.lang.String getName()
Required in order to implement has name interface returns the name of this map

Specified by:
getName in interface ManagedObject
Returns:
Returns the name of the object.

getMapName

public MapName getMapName()

getCenter

public Position getCenter()
returns the center of this map


setCenter

public void setCenter(Position center)
sets the center of this map


addMapLine

public void addMapLine(MapLine mapLine)

addMapArc

public void addMapArc(MapArc mapArc)

addMapSymbol

public void addMapSymbol(MapSymbol mapSymbol)

getMapSymbolsIterator

public java.util.Iterator<MapSymbol> getMapSymbolsIterator()
returns an iterator of the symbols of this map


getMapLinesIterator

public java.util.Iterator<MapLine> getMapLinesIterator()
returns an iterator of the lines of this map


getMapArcsIterator

public java.util.Iterator<MapArc> getMapArcsIterator()