Class PlanitZoningReader

    • Constructor Detail

      • PlanitZoningReader

        protected PlanitZoningReader​(PlanitZoningReaderSettings settings,
                                     TransportLayerNetwork<?,​?> network,
                                     Zoning zoning)
        Constructor
        Parameters:
        settings - to use
        network - to extract PLANit entities from by found references in zoning
        zoning - to populate
      • PlanitZoningReader

        protected PlanitZoningReader​(String pathDirectory,
                                     String xmlFileExtension,
                                     TransportLayerNetwork<?,​?> network,
                                     Zoning zoning)
                              throws PlanItException
        Constructor
        Parameters:
        pathDirectory - to use
        xmlFileExtension - to use
        network - to extract planit entities from by found references in zoning
        zoning - to populate
        Throws:
        PlanItException - thrown if error
      • PlanitZoningReader

        protected PlanitZoningReader​(org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlMacroscopicZoning,
                                     TransportLayerNetwork<?,​?> network,
                                     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:
        xmlMacroscopicZoning - to extract from
        network - to extract planit entities from by found references in zoning
        zoning - to populate
        Throws:
        PlanItException - thrown if error
    • Method Detail

      • populateIntermodal

        protected void populateIntermodal​(Modes modes)
                                   throws PlanItException
        Parse the intermodal zones, i.e., platforms, stops, stations, etc. from XML element into PLANit memory
        Parameters:
        modes - that can be referred to
        Throws:
        PlanItException - thrown if error
      • setZoning

        protected void setZoning​(Zoning zoning)
        Set the zoning to populate
        Parameters:
        zoning - to populate
      • setNetwork

        protected void setNetwork​(TransportLayerNetwork<?,​?> network)
        Set the network to utilise
        Parameters:
        network - to use
      • populateODZones

        protected void populateODZones()
                                throws PlanItException
        Parse the OD zones from Xml element into Planit memory
        Throws:
        PlanItException - thrown if error
      • reset

        public void reset()
        reset the reader to allow for marking unnecessary resources for garbage collection
        Specified by:
        reset in interface ConverterEntity