Class TntpInputBuilder

    • Constructor Detail

      • TntpInputBuilder

        public TntpInputBuilder​(String networkFileLocation,
                                String demandFileLocation,
                                Map<NetworkFileColumns,​Integer> networkFileColumns,
                                SpeedUnits speedUnits,
                                LengthUnits lengthUnits,
                                CapacityPeriod capacityPeriod,
                                double defaultMaximumSpeed)
                         throws PlanItException
        Constructor
        Parameters:
        networkFileLocation - network file location
        demandFileLocation - demand file location
        networkFileColumns - Map specifying which columns in the network file contain which values
        speedUnits - speed units being used
        lengthUnits - length units being used
        capacityPeriod - time period for link capacity
        defaultMaximumSpeed - default maximum speed along a link
        Throws:
        PlanItException - thrown if there is an error during running
      • TntpInputBuilder

        public TntpInputBuilder​(String networkFileLocation,
                                String demandFileLocation,
                                Map<NetworkFileColumns,​Integer> networkFileColumns,
                                SpeedUnits speedUnits,
                                LengthUnits lengthUnits,
                                double defaultMaximumSpeed)
                         throws PlanItException
        Constructor
        Parameters:
        networkFileLocation - network file location
        demandFileLocation - demand file location
        networkFileColumns - Map specifying which columns in the network file contain which values
        speedUnits - speed units being used
        lengthUnits - length units being used
        defaultMaximumSpeed - default maximum speed along a link
        Throws:
        PlanItException - thrown if there is an error during running
      • TntpInputBuilder

        public TntpInputBuilder​(String networkFileLocation,
                                String demandFileLocation,
                                String nodeCoordinateFileLocation,
                                String standardResultsFileLocation,
                                Map<NetworkFileColumns,​Integer> networkFileColumns,
                                SpeedUnits speedUnits,
                                LengthUnits lengthUnits,
                                double defaultMaximumSpeed)
                         throws PlanItException
        Constructor
        Parameters:
        networkFileLocation - network file location
        demandFileLocation - demand file location
        nodeCoordinateFileLocation - node coordinate file location
        standardResultsFileLocation - the location of the standard results file
        networkFileColumns - Map specifying which columns in the network file contain which values
        speedUnits - speed units being used
        lengthUnits - length units being used
        defaultMaximumSpeed - default maximum speed along a link
        Throws:
        PlanItException - thrown if there is an error during running
      • TntpInputBuilder

        public TntpInputBuilder​(String networkFileLocation,
                                String demandFileLocation,
                                String nodeCoordinateFileLocation,
                                Map<NetworkFileColumns,​Integer> networkFileColumns,
                                SpeedUnits speedUnits,
                                LengthUnits lengthUnits,
                                CapacityPeriod capacityPeriod,
                                double defaultMaximumSpeed)
                         throws PlanItException
        Constructor
        Parameters:
        networkFileLocation - network file location
        demandFileLocation - demand file location
        nodeCoordinateFileLocation - node coordinate file location
        networkFileColumns - Map specifying which columns in the network file contain which values
        speedUnits - speed units being used
        lengthUnits - length units being used
        capacityPeriod - time period for link capacity
        defaultMaximumSpeed - default maximum speed along links
        Throws:
        PlanItException - thrown if there is an error during running
    • Method Detail

      • populateInfrastructureNetwork

        protected void populateInfrastructureNetwork​(InfrastructureNetwork network)
                                              throws PlanItException
        Creates the physical network object from the data in the input file
        Parameters:
        network - the network object to be populated from the input data
        Throws:
        PlanItException - thrown if there is an error reading the input file
      • populateDemands

        protected void populateDemands​(Demands demands,
                                       Object parameter1)
                                throws PlanItException
        Populates the Demands object from the input file
        Parameters:
        demands - the Demands object to be populated from the input data
        parameter1 - Zoning object previously defined
        Throws:
        PlanItException - thrown if there is an error reading the input file
      • populateZoning

        protected void populateZoning​(Zoning zoning,
                                      Object parameter1)
                               throws PlanItException
        Creates the Zoning object and connectoids from the data in the network file In TNTP this method does not need to read a TAZ file. It simply uses the number of zones, which has already been read in from the network file.
        Parameters:
        zoning - the Zoning object to be populated from the input data
        parameter1 - the physical network object previously created
        Throws:
        PlanItException - thrown if there is an error reading the input file
      • populatePhysicalCost

        protected void populatePhysicalCost​(AbstractPhysicalCost costComponent)
                                     throws PlanItException
        Populate the BPR parameters
        Parameters:
        costComponent - the BPRLinkTravelTimeCost to be populated
        Throws:
        PlanItException - thrown if there is an error
      • notify

        public void notify​(org.djutils.event.EventInterface event)
                    throws RemoteException
        Whenever a project component is created this method will be invoked
        Parameters:
        event - event containing the created (and empty) project component
        Throws:
        RemoteException - thrown if there is an error