|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmain.Visualizer
public abstract class Visualizer
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 |
|---|
public static final java.lang.String VIEWS_DIR
public static final java.lang.String CONFIGS_DIR
public static final java.lang.String PICTURES_DIR
public static final java.lang.String CONFIG_FILE_EXT
private NodeEdgeMap map
private GenerateMap generateMap
| Constructor Detail |
|---|
public Visualizer()
Visualizer, which reads the input file
and uses the specified map generator to generate a map.
| Method Detail |
|---|
public void createMap()
throws java.io.IOException,
java.io.FileNotFoundException,
java.text.ParseException
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 occurspublic NodeEdgeMap getMap()
public GenerateMap getGenerateMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||