Pandora
Class ImportParser
- public class ImportParser
- This class is responsible for importing previously generated graphs from our program or other generators, to our program. Currently the supported files for importing are .inet, .pnd and .topgen.
- Version:
- 0.1
- Author:
- Foudalis Ilias
ImportParser
public ImportParser(java.lang.String filename)
- Class constructor.
- Parameters:
filename
- String : The name of the file that we want to import.
getEdges
public java.util.Vector getEdges()
- Returns the edges of the file that has been imported.
- Returns:
- Vector : The edges of the graph that has been imported are of type GraphEdge
getNodes
public java.util.Vector getNodes()
- Returns the nodes of the file that has been imported.
- Returns:
- Vector : The nodes of the graph that has been imported are of type GraphNode.
parseInet
public void parseInet()
- Method responsible for parsing .inet files.
parsePnd
public void parsePnd()
- Method responsible for parsing a .pnd file.
parseTopGen
public void parseTopGen()
- Method responsible for parsing .topgen files.
parsePndEdges
private void parsePndEdges(java.io.BufferedReader in)
- Method responsible for parsing the edges of a .pnd file.
- Parameters:
in
- BufferedReader
parsePndNodes
private void parsePndNodes(java.io.BufferedReader in)
- Method responsible for parsing the nodes of a .pnd file.
- Parameters:
in
- BufferedReader