main
Class Visualizer

java.lang.Object
  extended by main.Visualizer
Direct Known Subclasses:
PlanetshVisualizer, SophiaVisualizer

public abstract class Visualizer
extends java.lang.Object

The Visualizer class reads in an inputfile and runs the GenerateMap that is passed in to create the map object.


Field Summary
static java.lang.String CONFIG_FILE_EXT
          file-extension of a config file
static java.lang.String CONFIGS_DIR
          The path to the directory in which the saved simulation-config files are located
private  GenerateMap generateMap
           
private  NodeEdgeMap map
           
static java.lang.String PICTURES_DIR
          The path to the directory in which the images of the map can be saved.
static java.lang.String VIEWS_DIR
          The path to the directory in which view files are located.
 
Constructor Summary
Visualizer()
          Initializes the Visualizer, which reads the input file and uses the specified map generator to generate a map.
 
Method Summary
 void createMap()
          does nothing
 GenerateMap getGenerateMap()
           
 NodeEdgeMap getMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEWS_DIR

public static final java.lang.String VIEWS_DIR
The path to the directory in which view files are located.

See Also:
Constant Field Values

CONFIGS_DIR

public static final java.lang.String CONFIGS_DIR
The path to the directory in which the saved simulation-config files are located


PICTURES_DIR

public static final java.lang.String PICTURES_DIR
The path to the directory in which the images of the map can be saved.

See Also:
Constant Field Values

CONFIG_FILE_EXT

public static final java.lang.String CONFIG_FILE_EXT
file-extension of a config file

See Also:
Constant Field Values

map

private NodeEdgeMap map

generateMap

private GenerateMap generateMap
Constructor Detail

Visualizer

public Visualizer()
Initializes the Visualizer, which reads the input file and uses the specified map generator to generate a map.

Method Detail

createMap

public void createMap()
               throws java.io.IOException,
                      java.io.FileNotFoundException,
                      java.text.ParseException
does nothing

Throws:
java.io.IOException - if there's an error opening or reading a file
java.io.FileNotFoundException - if a file is not found
java.text.ParseException - if a parse error occurs

getMap

public NodeEdgeMap getMap()
Returns:
the map

getGenerateMap

public GenerateMap getGenerateMap()
Returns:
the generateMap