AI for Games 1.1.1
Loading...
Searching...
No Matches
game2dai.utils.GraphSAXParser Class Reference
Inheritance diagram for game2dai.utils.GraphSAXParser:

Public Member Functions

Graph get ()
 
void startDocument () throws SAXException
 
void endDocument () throws SAXException
 
void startElement (String namespaceURI, String localName, String qName, Attributes attr) throws SAXException
 
void endElement (String namespceURI, String localName, String qName) throws SAXException
 
void characters (char[] ch, int start, int length) throws SAXException
 
 GraphSAXParser (File aFile)
 
 GraphSAXParser (PApplet app, String fname)
 
 GraphSAXParser (String fname)
 
- Public Member Functions inherited from game2dai.utils.EntitySAXParser
 EntitySAXParser (PApplet app, String fname)
 
 EntitySAXParser (String fname)
 
 EntitySAXParser (File aFile)
 

Private Member Functions

void storeElementValue (String elementName, String elementValue)
 

Private Attributes

Graph graph = null
 
int nodeid
 
int from
 
int to
 
double x
 
double y
 
double cost_out
 
double cost_back
 

Additional Inherited Members

- Protected Member Functions inherited from game2dai.utils.EntitySAXParser
double getDouble (String s)
 
int getInteger (String s)
 
- Protected Attributes inherited from game2dai.utils.EntitySAXParser
SAXParserFactory factory = SAXParserFactory.newInstance()
 
SAXParser saxParser
 
CharArrayWriter buffer = new CharArrayWriter()
 
String filename
 
InputStream istream = null
 
boolean error = false
 

Detailed Description

Author
Peter Lager

Constructor & Destructor Documentation

◆ GraphSAXParser() [1/3]

game2dai.utils.GraphSAXParser.GraphSAXParser ( File  aFile)
Parameters
aFile

◆ GraphSAXParser() [2/3]

game2dai.utils.GraphSAXParser.GraphSAXParser ( PApplet  app,
String  fname 
)
Parameters
app
fname

◆ GraphSAXParser() [3/3]

game2dai.utils.GraphSAXParser.GraphSAXParser ( String  fname)
Parameters
fname

The documentation for this class was generated from the following file: