Class ProcessInfrastructure


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

      • ProcessInfrastructure

        public ProcessInfrastructure()
    • Method Detail

      • createAndRegisterNodes

        public static void createAndRegisterNodes​(org.planit.xml.generated.XMLElementInfrastructure infrastructure,
                                                  MacroscopicNetwork network,
                                                  InputBuilderListener inputBuilderListener)
                                           throws PlanItException
        Create and register nodes on the network
        Parameters:
        infrastructure - Infrastructure object populated with data from XML file
        network - network the physical network object to be populated from the input data
        inputBuilderListener - parser which holds the Map of nodes by external Id
        Throws:
        PlanItException - thrown if there is an error in storing the GML Point definition
      • createAndRegisterLinkSegments

        public static void createAndRegisterLinkSegments​(org.planit.xml.generated.XMLElementInfrastructure infrastructure,
                                                         MacroscopicNetwork network,
                                                         Map<Long,​MacroscopicLinkSegmentTypeXmlHelper> linkSegmentTypeHelperMap,
                                                         InputBuilderListener inputBuilderListener)
                                                  throws PlanItException
        Generated and register link segments
        Parameters:
        infrastructure - Infrastructure object populated with data from XML file
        network - network the physical network object to be populated from the input data
        linkSegmentTypeHelperMap - Map of MacroscopicLinkSegmentTypeXmlHelper objects
        inputBuilderListener - parser which holds the Map of nodes by external Id
        Throws:
        PlanItException - thrown if there is an error during processing or reference to link segment types invalid