Class PlanitNetworkReaderFactory


  • public class PlanitNetworkReaderFactory
    extends Object
    Factory for creating PLANitNetworkReaders
    Author:
    markr
    • Constructor Detail

      • PlanitNetworkReaderFactory

        public PlanitNetworkReaderFactory()
    • Method Detail

      • create

        public static PlanitNetworkReader create()
        Create a PLANitNetworkReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving country
        Returns:
        created PLANit network reader
      • create

        public static PlanitNetworkReader create​(IdGroupingToken idToken)
        Create a PLANitNetworkReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving country
        Parameters:
        idToken - to use for network
        Returns:
        created PLANit network reader
      • create

        public static PlanitNetworkReader create​(String inputDirectory)
        Create a PLANitNetworkReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving country
        Parameters:
        inputDirectory - to use (directory only, find first compatible file)
        Returns:
        created PLANit network reader
      • create

        public static PlanitNetworkReader create​(PlanitNetworkReaderSettings settings)
        Create a PLANitNetworkReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving country
        Parameters:
        settings - to use
        Returns:
        created PLANit network reader
      • create

        public static PlanitNetworkReader create​(PlanitNetworkReaderSettings settings,
                                                 LayeredNetwork<?,​?> network)
        Create a PLANitNetworkReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving country
        Parameters:
        settings - to use
        network - to use
        Returns:
        created PLANit network reader
      • create

        public static PlanitNetworkReader create​(String inputDirectory,
                                                 String xmlFileExtension,
                                                 LayeredNetwork<?,​?> network)
        Create a PLANitNetworkReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving country
        Parameters:
        inputDirectory - to use (directory only, find first compatible file)
        xmlFileExtension - to consider
        network - to populate
        Returns:
        created PLANit reader
      • create

        public static PlanitNetworkReader create​(org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork,
                                                 LayeredNetwork<?,​?> network)
        Create a PLANitNetworkReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving country
        Parameters:
        xmlRawNetwork - the raw network based on the JAXB parser
        network - to populate
        Returns:
        created PLANit reader
      • create

        public static PlanitNetworkReader create​(org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork,
                                                 PlanitNetworkReaderSettings settings,
                                                 LayeredNetwork<?,​?> network)
        Create a PLANitNetworkReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving country
        Parameters:
        xmlRawNetwork - the raw network based on the JAXB parser
        settings - to use
        network - to populate
        Returns:
        created PLANit reader