Class TraditionalStaticAssignment

    • Constructor Detail

      • TraditionalStaticAssignment

        public TraditionalStaticAssignment​(IdGroupingToken groupId)
        Base Constructor
        Parameters:
        groupId - contiguous id generation within this group for instances of this class
    • Method Detail

      • createLoggingPrefix

        protected String createLoggingPrefix()
        create the logging prefix for logging statements during equilibration
        Returns:
        prefix
      • createTrafficAssignmentBuilder

        protected TrafficAssignmentBuilder createTrafficAssignmentBuilder​(InputBuilderListener trafficComponentCreateListener,
                                                                          Demands demands,
                                                                          Zoning zoning,
                                                                          PhysicalNetwork physicalNetwork)
                                                                   throws PlanItException
        create the traffic assignment builder for this traffic assignment
        Specified by:
        createTrafficAssignmentBuilder in class TrafficAssignment
        Parameters:
        trafficComponentCreateListener - listener to register on all traffic assignment components that this builder can build
        demands - the demands this assignment works on
        zoning - the zoning this assignment works on
        physicalNetwork - the physical network this assignment works on
        Returns:
        created traffic assignment builder
        Throws:
        PlanItException - thrown if there is an error
      • addRegisteredEventTypeListeners

        protected void addRegisteredEventTypeListeners​(org.djutils.event.EventType eventType)
        register all the known listeners for the passed in eventType on this producer for this event type
        Specified by:
        addRegisteredEventTypeListeners in class TrafficAssignment
        Parameters:
        eventType - the event type to register
      • getTotalNetworkSegmentFlow

        public double getTotalNetworkSegmentFlow​(LinkSegment linkSegment)
        #Get the total flow across a link over all modes
        Specified by:
        getTotalNetworkSegmentFlow in interface LinkVolumeAccessee
        Parameters:
        linkSegment - the specified link segment
        Returns:
        the total flow across this link segment
      • getModalNetworkSegmentFlows

        public double[] getModalNetworkSegmentFlows​(Mode mode)
        #Get link segment flows for a specified mode
        Specified by:
        getModalNetworkSegmentFlows in interface LinkVolumeAccessee
        Parameters:
        mode - mode
        Returns:
        link segment flows for all modes
      • notify

        public void notify​(org.djutils.event.EventInterface event)
                    throws RemoteException
        Deal with requests for link volume accessees since we are one. Whenever such a request arrives, we provide ourselves as a candidate and fire a response event of type LinkVolumeAccessee.INTERACTOR_PROVIDE_LINKVOLUMEACCESSEE
        Specified by:
        notify in interface org.djutils.event.EventListenerInterface
        Parameters:
        event - to process
        Throws:
        RemoteException
      • createOutputTypeAdapter

        public OutputTypeAdapter createOutputTypeAdapter​(OutputType outputType)
        Create the output type adapter for the current output type
        Specified by:
        createOutputTypeAdapter in class TrafficAssignment
        Parameters:
        outputType - the current output type
        Returns:
        the output type adapter corresponding to the current traffic assignment and output type