Package org.planit.io.xml.network
Class ProcessLinkConfiguration
- java.lang.Object
-
- org.planit.io.xml.network.ProcessLinkConfiguration
-
public class ProcessLinkConfiguration extends Object
Process the LinkConfiguration object populated with data from the XML file- Author:
- gman6028
-
-
Constructor Summary
Constructors Constructor Description ProcessLinkConfiguration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createAndRegisterModes(PhysicalNetwork physicalNetwork, org.planit.xml.generated.XMLElementLinkConfiguration linkconfiguration, InputBuilderListener inputBuilderListener)
Reads mode types from input file and stores them in a Mapstatic Map<Long,MacroscopicLinkSegmentTypeXmlHelper>
createLinkSegmentTypeHelperMap(org.planit.xml.generated.XMLElementLinkConfiguration linkconfiguration, InputBuilderListener inputBuilderListener)
Reads MacroscopicLinkSegmentTypeXmlHelper objects from input file and stores them in a Map
-
-
-
Method Detail
-
createAndRegisterModes
public static void createAndRegisterModes(PhysicalNetwork physicalNetwork, org.planit.xml.generated.XMLElementLinkConfiguration linkconfiguration, InputBuilderListener inputBuilderListener) throws PlanItException
Reads mode types from input file and stores them in a Map- Parameters:
physicalNetwork
- the networklinkconfiguration
- LinkConfiguration object populated with data from XML fileinputBuilderListener
- parser which holds the Map of nodes by external Id- Throws:
PlanItException
- thrown if there is a Mode value of 0 in the modes definition file
-
createLinkSegmentTypeHelperMap
public static Map<Long,MacroscopicLinkSegmentTypeXmlHelper> createLinkSegmentTypeHelperMap(org.planit.xml.generated.XMLElementLinkConfiguration linkconfiguration, InputBuilderListener inputBuilderListener) throws PlanItException
Reads MacroscopicLinkSegmentTypeXmlHelper objects from input file and stores them in a Map- Parameters:
linkconfiguration
- LinkConfiguration object populated with data from XML fileinputBuilderListener
- parser which holds the Map of nodes by external Id- Returns:
- Map containing link type values identified by their external Ids
- Throws:
PlanItException
- thrown if there is an error reading the input file
-
-