Class PlanitIntermodalReader

    • Field Detail

      • zoningToPopulate

        protected final Zoning zoningToPopulate
        the zoning to populate
      • networkToPopulate

        protected final MacroscopicNetwork networkToPopulate
        the network to populate
    • Constructor Detail

      • PlanitIntermodalReader

        protected PlanitIntermodalReader​(String inputPathDirectory,
                                         String xmlFileExtension,
                                         IdGroupingToken idToken)
                                  throws PlanItException
        constructor where xml content is still on disk and first needs to be parsed into memory before converted to planit memory model. Network and zoning instance are created internally and returned upon completion
        Parameters:
        inputPathDirectory - to use for both network and zoning input file assuming default input file names for both (network.xml, zoning.xml) *
        xmlFileExtension - to use
        idToken - to use for the network and zoning that are to be created
        Throws:
        PlanItException - thrown if error
      • PlanitIntermodalReader

        protected PlanitIntermodalReader​(PlanitIntermodalReaderSettings settings,
                                         IdGroupingToken idToken)
                                  throws PlanItException
        constructor where xml content is still on disk and first needs to be parsed into memory before converted to planit memory model. Network and zoning instance are created internally and returned upon completion
        Parameters:
        settings - to use
        idToken - to use for the network and zoning that are to be created
        Throws:
        PlanItException - thrown if error
      • PlanitIntermodalReader

        protected PlanitIntermodalReader​(String inputPathDirectory,
                                         String xmlFileExtension,
                                         MacroscopicNetwork network,
                                         Zoning zoning)
                                  throws PlanItException
        constructor where xml content is still on disk and first needs to be parsed into memory before converted to planit memory model
        Parameters:
        inputPathDirectory - to use for both network and zoning input file assuming default input file names for both (network.xml, zoning.xml) *
        xmlFileExtension - to use
        network - to populate
        zoning - to populate
        Throws:
        PlanItException - thrown if error
      • PlanitIntermodalReader

        public PlanitIntermodalReader​(org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork,
                                      org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning,
                                      MacroscopicNetwork network,
                                      Zoning zoning)
                               throws PlanItException
        constructor where the xml content has already been parsed into a JAXB memory model which subsequently needs to be converted into the planit memory model
        Parameters:
        xmlRawNetwork - to extract from
        xmlRawZoning - to extract from
        network - to extract referenced entities from
        zoning - to populate
        Throws:
        PlanItException - thrown if error