main
Class SophiaVisualizer

java.lang.Object
  extended by main.Visualizer
      extended by main.SophiaVisualizer

public class SophiaVisualizer
extends Visualizer

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


Field Summary
private  java.lang.String description
           
private  DataGatherer edgeDG
           
private  DrawingParameters edgeParameters
           
private  QueryDescription edgeQuery
           
private  InputFileParser fileParser
           
private  GenerateMap generateMap
           
private  ImageParameters imageParameters
           
private  NodeEdgeMap map
           
private  DataGatherer nodeDG
           
private  DrawingParameters nodeParameters
           
private  QueryDescription nodeQuery
           
 
Fields inherited from class main.Visualizer
CONFIG_FILE_EXT, CONFIGS_DIR, PICTURES_DIR, VIEWS_DIR
 
Constructor Summary
SophiaVisualizer(java.lang.String inputFileName, GenerateMap generateMap)
          Initializes the Visualizer, which reads the input file and uses the specified map generator to generate a map.
 
Method Summary
 GenerateMap getGenerateMap()
           
 NodeEdgeMap getMap()
           
 
Methods inherited from class main.Visualizer
createMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileParser

private InputFileParser fileParser

nodeDG

private DataGatherer nodeDG

edgeDG

private DataGatherer edgeDG

nodeParameters

private DrawingParameters nodeParameters

edgeParameters

private DrawingParameters edgeParameters

imageParameters

private ImageParameters imageParameters

map

private NodeEdgeMap map

nodeQuery

private QueryDescription nodeQuery

edgeQuery

private QueryDescription edgeQuery

description

private java.lang.String description

generateMap

private GenerateMap generateMap
Constructor Detail

SophiaVisualizer

public SophiaVisualizer(java.lang.String inputFileName,
                        GenerateMap generateMap)
                 throws java.io.FileNotFoundException,
                        java.io.IOException,
                        java.text.ParseException,
                        java.lang.Exception
Initializes the Visualizer, which reads the input file and uses the specified map generator to generate a map.

Parameters:
inputFileName - a String that is the input file's name
generateMap - a GenerateMap that specifies how to draw the map
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
java.lang.Exception
Method Detail

getMap

public NodeEdgeMap getMap()
Overrides:
getMap in class Visualizer
Returns:
the map

getGenerateMap

public GenerateMap getGenerateMap()
Overrides:
getGenerateMap in class Visualizer
Returns:
the generateMap