Class PlanitInterModalReader


  • public class PlanitInterModalReader
    extends PlanitXmlReader<org.planit.xml.generated.XMLElementMacroscopicIntermodal>
    Class to parse intermodal components from native XML format. Since the transfers occur at transfer zones which are closely related to regular (OD) zones, the intermodal memory model is closely related to the Zoning class
    Author:
    markr
    • Constructor Detail

      • PlanitInterModalReader

        public PlanitInterModalReader​(String pathDirectory,
                                      String xmlFileExtension,
                                      Zoning zoning)
                               throws PlanItException
        constructor
        Parameters:
        pathDirectory - to use
        xmlFileExtension - to use
        zoning - to populate
        Throws:
        PlanItException - thrown if error
      • PlanitInterModalReader

        public PlanitInterModalReader​(org.planit.xml.generated.XMLElementMacroscopicIntermodal xmlElementMacroscopicIntermodal,
                                      Zoning zoning)
                               throws PlanItException
        constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model
        Parameters:
        xmlElementMacroscopicIntermodal - to extract from
        zoning - to populate
        Throws:
        PlanItException - thrown if error
    • Method Detail

      • setZoning

        protected void setZoning​(Zoning zoning)
        set the oning to populate
        Parameters:
        zoning - to populate