Class ProcessLinkConfiguration


  • public class ProcessLinkConfiguration
    extends Object
    Process the LinkConfiguration object populated with data from the XML file
    Author:
    gman6028
    • Constructor Detail

      • ProcessLinkConfiguration

        public ProcessLinkConfiguration()
    • 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 network
        linkconfiguration - LinkConfiguration object populated with data from XML file
        inputBuilderListener - 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 file
        inputBuilderListener - 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