public class Parser extends Object
Modifier and Type | Method and Description |
---|---|
static EventSchedule |
parseEventSchedule(String eventScheduleFile)
Parse an event schedule XML file
|
static Topology |
parseTopology(String topologyFile)
Parse a topology XML file
|
static TrafficMatrix |
parseTrafficMatrix(String trafficMatrixFile)
Parse a traffic matrix file containing a single traffic matrix
|
static TrafficMatrixSequence |
parseTrafficMatrixSequence(String trafficMatrixFile)
Parse a traffic matrix file containing a sequence of traffic matrices
|
public static Topology parseTopology(String topologyFile) throws org.jdom2.JDOMException, IOException
topologyFile
- The name of the topology fileTopology
object of the parsed topologyorg.jdom2.JDOMException
- If the XML file is badly formattedIOException
- If an error occurs while trying to read the filepublic static EventSchedule parseEventSchedule(String eventScheduleFile) throws org.jdom2.JDOMException, IOException
eventScheduleFile
- The name of the event schedule fileEventSchudule
object of the parsed event
scheduleorg.jdom2.JDOMException
- If the XML file is badly formattedIOException
- If an error occurs while trying to read the filepublic static TrafficMatrix parseTrafficMatrix(String trafficMatrixFile) throws org.jdom2.JDOMException, IOException
trafficMatrixFile
- The name of the traffic matrix fileTrafficMatrix
object of the parsed matrixorg.jdom2.JDOMException
- If the XML file is badly formattedIOException
- If an error occurs while trying to read the filepublic static TrafficMatrixSequence parseTrafficMatrixSequence(String trafficMatrixFile) throws org.jdom2.JDOMException, IOException
trafficMatrixFile
- The name of the traffic matrix fileTrafficMatrixSequence
object containing a
sequence of TrafficMatrix
objectsorg.jdom2.JDOMException
- If the XML file is badly formattedIOException
- If an error occurs while trying to read the file