Class PlanitZoningReader

    • Field Detail

      • zoning

        protected Zoning zoning
        the zoning to populate
      • network

        protected LayeredNetwork<?,​?> network
        the network this zoning relates to
      • ZONING_XSD_FILE

        public static final String ZONING_XSD_FILE
        Reference to zoning schema location, TODO: move to properties file
        See Also:
        Constant Field Values
    • Constructor Detail

      • PlanitZoningReader

        protected PlanitZoningReader​(PlanitZoningReaderSettings settings,
                                     NetworkReader networkReader)
        Constructor
        Parameters:
        settings - to use
        networkReader - to construct reference network from
      • PlanitZoningReader

        protected PlanitZoningReader​(PlanitZoningReaderSettings settings,
                                     LayeredNetwork<?,​?> 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,
                                     LayeredNetwork<?,​?> network,
                                     Zoning zoning)
        Constructor
        Parameters:
        pathDirectory - to use
        xmlFileExtension - to use
        network - to extract planit entities from by found references in zoning
        zoning - to populate
      • PlanitZoningReader

        protected PlanitZoningReader​(org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlMacroscopicZoning,
                                     LayeredNetwork<?,​?> network,
                                     Zoning zoning)
        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
      • PlanitZoningReader

        protected PlanitZoningReader​(org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlMacroscopicZoning,
                                     PlanitZoningReaderSettings settings,
                                     LayeredNetwork<?,​?> network,
                                     Zoning zoning)
        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
        settings - to use
        network - to extract planit entities from by found references in zoning
        zoning - to populate
    • 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
      • setReferenceNetwork

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

        protected void populateODZones()
        Parse the OD zones from Xml element into Planit memory
      • getReferenceNetwork

        public LayeredNetwork<?,​?> getReferenceNetwork()
        Access to reference network used
        Returns:
        reference network