Class TntpDemandsReaderFactory
- java.lang.Object
-
- org.goplanit.tntp.converter.demands.TntpDemandsReaderFactory
-
public class TntpDemandsReaderFactory extends Object
Factory class for creating demands reader in the TNTP format.- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description TntpDemandsReaderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TntpDemandsReader
create(String demandInputFile, MacroscopicNetwork network, Zoning zoning)
Factory method using global id token to create instance of demandsstatic TntpDemandsReader
create(String demandInputFile, MacroscopicNetwork network, Zoning zoning, IdGroupingToken idToken)
Factory methodstatic TntpDemandsReader
create(MacroscopicNetwork network, Zoning zoning)
Factory method using global id token to create instance of demands, requires user to set input filestatic 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 filestatic TntpDemandsReader
create(TntpDemandsReaderSettings demandsSettings, MacroscopicNetwork referenceNetwork, Zoning referenceZoning, Demands demandsToPopulate)
Factory methodstatic TntpDemandsReader
create(TntpDemandsReaderSettings demandsSettings, TntpZoningReader referenceZoningReader)
Factory methodstatic TntpDemandsReader
create(TntpZoningReader referenceZoningReader)
Factory method
-
-
-
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(TntpDemandsReaderSettings demandsSettings, MacroscopicNetwork referenceNetwork, Zoning referenceZoning, Demands demandsToPopulate)
Factory method- Parameters:
demandsSettings
- to usereferenceNetwork
- to usereferenceZoning
- to usedemandsToPopulate
- to use- Returns:
- created PLANit zoning reader
-
create
public static TntpDemandsReader create(TntpZoningReader referenceZoningReader)
Factory method- Parameters:
referenceZoningReader
- to use- Returns:
- created PLANit zoning reader
-
create
public static TntpDemandsReader create(TntpDemandsReaderSettings demandsSettings, TntpZoningReader referenceZoningReader)
Factory method- Parameters:
demandsSettings
- to usereferenceZoningReader
- to use- Returns:
- created PLANit zoning reader
-
-