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​(String pathDirectory,
                                                LayeredNetwork<?,​?> network)
        Factory method
        Parameters:
        pathDirectory - to use
        network - to extract references from (if any)
        Returns:
        created PLANit zoning reader
      • create

        public static PlanitZoningReader create​(String pathDirectory,
                                                String xmlFileExtension,
                                                LayeredNetwork<?,​?> network,
                                                Zoning zoning)
        Factory method
        Parameters:
        pathDirectory - to use
        xmlFileExtension - to use
        network - to extract references from (if any)
        zoning - to populate
        Returns:
        created PLANit zoning reader
      • create

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

        public static PlanitZoningReader create​(org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning,
                                                PlanitZoningReaderSettings zoningSettings,
                                                LayeredNetwork<?,​?> network,
                                                Zoning zoning)
        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
        zoningSettings - to use
        network - to extract references from (if any)
        zoning - to populate
        Returns:
        created PLANit zoning reader
      • create

        public static PlanitZoningReader create​(NetworkReader networkReader)
        Factory method where all contextual information is to be set afterwards via settings and network is to be obtained from provided reader.
        Parameters:
        networkReader - to extract reference network from
        Returns:
        created PLANit zoning reader
      • create

        public static PlanitZoningReader create​(PlanitZoningReaderSettings settings,
                                                NetworkReader networkReader)
        Factory method where all contextual information is derived from settings and network is to be obtained from provided reader.
        Parameters:
        settings - to use
        networkReader - to extract reference network from
        Returns:
        created PLANit zoning reader