Class TntpZoningReaderFactory
- java.lang.Object
-
- org.goplanit.tntp.converter.zoning.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 Summary
Constructors Constructor Description TntpZoningReaderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TntpZoningReader
create(String networkInputFile, MacroscopicNetwork network, IdGroupingToken idToken)
Factory methodstatic TntpZoningReader
create(String networkInputFile, MacroscopicNetwork network, Zoning zoningToPopulate)
Factory methodstatic TntpZoningReader
create(NetworkReader referenceNetworkReader)
Factory methodstatic TntpZoningReader
create(MacroscopicNetwork network, IdGroupingToken idToken)
Factory method, will create zoning based on idToken provided and use it to populate when reading in TNTP zoningstatic TntpZoningReader
create(MacroscopicNetwork network, Zoning zoningToPopulate)
Factory methodstatic TntpZoningReader
create(TntpZoningReaderSettings zoningSettings, NetworkReader referenceNetworkReader)
Factory methodstatic TntpZoningReader
create(TntpZoningReaderSettings zoningSettings, MacroscopicNetwork referenceNetwork, Zoning zoningToPopulate)
Factory method
-
-
-
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(TntpZoningReaderSettings zoningSettings, MacroscopicNetwork referenceNetwork, Zoning zoningToPopulate)
Factory method- Parameters:
zoningSettings
- to usereferenceNetwork
- to usezoningToPopulate
- to use- Returns:
- created TNTP zoning reader
-
create
public static TntpZoningReader create(NetworkReader referenceNetworkReader)
Factory method- Parameters:
referenceNetworkReader
- to use- Returns:
- created TNTP zoning reader
-
create
public static TntpZoningReader create(TntpZoningReaderSettings zoningSettings, NetworkReader referenceNetworkReader)
Factory method- Parameters:
zoningSettings
- to usereferenceNetworkReader
- to use- Returns:
- created TNTP zoning reader
-
-