Class TntpZoningReaderFactory


  • public class TntpZoningReaderFactory
    extends Object
    Factory class for creating zoning reader in the TNTP format. Note that the zoning information of TNTP is captured within its network definition.
    Author:
    markr
    • Constructor Detail

      • TntpZoningReaderFactory

        public TntpZoningReaderFactory()
    • Method Detail

      • create

        public static TntpZoningReader create​(MacroscopicNetwork network,
                                              IdGroupingToken idToken)
        Factory method, will create zoning based on idToken provided and use it to populate when reading in TNTP zoning
        Parameters:
        network - to extract references from (if any)
        idToken - to use
        Returns:
        created TNTP zoning reader
      • create

        public static TntpZoningReader create​(MacroscopicNetwork network,
                                              Zoning zoningToPopulate)
        Factory method
        Parameters:
        network - to extract references from (if any)
        zoningToPopulate - to populate
        Returns:
        created TNTP zoning reader
      • create

        public static TntpZoningReader create​(String networkInputFile,
                                              MacroscopicNetwork network,
                                              Zoning zoningToPopulate)
        Factory method
        Parameters:
        networkInputFile - to use (zone definition is included in network definition)
        network - to extract references from (if any)
        zoningToPopulate - to populate
        Returns:
        created TNTP zoning reader
      • create

        public static TntpZoningReader create​(String networkInputFile,
                                              MacroscopicNetwork network,
                                              IdGroupingToken idToken)
        Factory method
        Parameters:
        networkInputFile - to use (zone definition is included in network definition)
        network - to extract references from (if any)
        idToken - to use for the zoning instance
        Returns:
        created TNTP zoning reader
      • create

        public static TntpZoningReader create​(NetworkReader referenceNetworkReader)
        Factory method
        Parameters:
        referenceNetworkReader - to use
        Returns:
        created TNTP zoning reader