Class TntpDemandsReaderFactory


  • public class TntpDemandsReaderFactory
    extends Object
    Factory class for creating demands reader in the TNTP format.
    Author:
    markr
    • Constructor Detail

      • TntpDemandsReaderFactory

        public TntpDemandsReaderFactory()
    • Method Detail

      • create

        public static TntpDemandsReader create​(MacroscopicNetwork network,
                                               Zoning zoning,
                                               IdGroupingToken idToken)
        Factory method, will create Demands based on idToken provided and use it to populate when reading in TNTP demand, , requires user to set input file
        Parameters:
        network - to extract references from (if any)
        zoning - to extract references from (if any)
        idToken - to use when generating demands instance
        Returns:
        created TNTP demands reader
      • create

        public static TntpDemandsReader create​(MacroscopicNetwork network,
                                               Zoning zoning)
        Factory method using global id token to create instance of demands, requires user to set input file
        Parameters:
        network - to extract references from (if any)
        zoning - to extract references from (if any)
        Returns:
        created TNTP demands reader
      • create

        public static TntpDemandsReader create​(String demandInputFile,
                                               MacroscopicNetwork network,
                                               Zoning zoning)
        Factory method using global id token to create instance of demands
        Parameters:
        demandInputFile - to use (should contain the trips)
        network - to extract references from (if any)
        zoning - to extract references from (if any)
        Returns:
        created TNTP demands reader
      • create

        public static TntpDemandsReader create​(String demandInputFile,
                                               MacroscopicNetwork network,
                                               Zoning zoning,
                                               IdGroupingToken idToken)
        Factory method
        Parameters:
        demandInputFile - to use (should contain the trips)
        network - to extract references from (if any)
        zoning - to extract references from (if any)
        idToken - to use for the demands instance
        Returns:
        created TNTP demands reader
      • create

        public static TntpDemandsReader create​(TntpZoningReader referenceZoningReader)
        Factory method
        Parameters:
        referenceZoningReader - to use
        Returns:
        created PLANit zoning reader