nl.tudelft.simulation.traffic.file
Class InfraFileXMLParser

java.lang.Object
  extended bynl.tudelft.simulation.xml.AbstractXMLParser
      extended bynl.tudelft.simulation.traffic.file.InfraFileXMLParser

public class InfraFileXMLParser
extends nl.tudelft.simulation.xml.AbstractXMLParser


(c) copyright 2003-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Version:
May 31, 2004
Author:
Alexander Verbraeck

Nested Class Summary
 
Nested classes inherited from class nl.tudelft.simulation.xml.AbstractXMLParser
 
Field Summary
static java.net.URL INFRAFILE_SCHEMA
          the default schema file
 
Constructor Summary
InfraFileXMLParser(java.net.URL url, java.net.URL schema, java.lang.String schemaNamespace, boolean validateSchema, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator)
           
InfraFileXMLParser(java.net.URL url, java.net.URL schema, java.lang.String schemaNamespace, boolean validateSchema, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator, java.util.HashMap linkMap, java.util.HashMap trackMap)
           
 
Method Summary
protected  void genVehicle(TrackInterface track, double progression, double maxSpeedStart, VehicleType vehicleType, double interval, java.lang.String line)
           
protected  void parse(org.jdom.Element xmlMapFileElement)
          parses an infrafile URL
 
Methods inherited from class nl.tudelft.simulation.xml.AbstractXMLParser
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFRAFILE_SCHEMA

public static final java.net.URL INFRAFILE_SCHEMA
the default schema file

Constructor Detail

InfraFileXMLParser

public InfraFileXMLParser(java.net.URL url,
                          java.net.URL schema,
                          java.lang.String schemaNamespace,
                          boolean validateSchema,
                          nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator)
                   throws java.lang.Exception
Parameters:
url -
schema -
schemaNamespace -
validateSchema -
simulator -
Throws:
java.lang.Exception

InfraFileXMLParser

public InfraFileXMLParser(java.net.URL url,
                          java.net.URL schema,
                          java.lang.String schemaNamespace,
                          boolean validateSchema,
                          nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
                          java.util.HashMap linkMap,
                          java.util.HashMap trackMap)
                   throws java.lang.Exception
Parameters:
url -
schema -
schemaNamespace -
validateSchema -
simulator -
linkMap -
trackMap -
Throws:
java.lang.Exception
Method Detail

parse

protected void parse(org.jdom.Element xmlMapFileElement)
              throws java.lang.Exception
parses an infrafile URL

Parameters:
xmlMapFileElement -
Throws:
java.lang.Exception - on parse exception

genVehicle

protected void genVehicle(TrackInterface track,
                          double progression,
                          double maxSpeedStart,
                          VehicleType vehicleType,
                          double interval,
                          java.lang.String line)
                   throws java.lang.Exception
Parameters:
track -
progression -
maxSpeedStart -
vehicleType -
interval -
line -
Throws:
java.lang.Exception


Copyright © 2003-2004 Delft University of Technology, the Netherlands. All Rights Reserved.