Class PlanitZoningReaderFactory


  • public class PlanitZoningReaderFactory
    extends Object
    Factory class for creating zoning reader in the native PLANit format
    Author:
    markr
    • Constructor Detail

      • PlanitZoningReaderFactory

        public PlanitZoningReaderFactory()
    • Method Detail

      • create

        public static PlanitZoningReader create()
                                         throws PlanItException
        Factory method wit all default, expected that user configures the settings afterwards to reach minimum requirements for successful parsing (input dir especially)
        Returns:
        created PLANit zoning reader
        Throws:
        PlanItException - thrown if error
      • create

        public static PlanitZoningReader create​(org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning,
                                                TransportLayerNetwork<?,​?> network,
                                                Zoning zoning)
                                         throws PlanItException
        Factory method where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model
        Parameters:
        xmlRawZoning - to extract from
        network - to extract references from (if any)
        zoning - to populate
        Returns:
        created PLANit zoning reader
        Throws:
        PlanItException - thrown if error