Package org.planit.ltm.trafficassignment
Class ELTM
- java.lang.Object
-
- org.djutils.event.EventProducer
-
- All Implemented Interfaces:
Serializable,org.djutils.event.EventProducerInterface
public class ELTM extends CapacityConstrainedAssignment
event based Link Transmission Model implementation (eLTM) for network loading using a capacity constrained (Deterministic) assignment- Author:
- markr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.planit.trafficassignment.CapacityConstrainedAssignment
capacityConstrainedBuilder, fundamentalDiagram, nodeModel
-
Fields inherited from class org.planit.trafficassignment.TrafficAssignment
demands, initialLinkSegmentCost, initialLinkSegmentCostByTimePeriod, numberOfNetworkSegments, numberOfNetworkVertices, outputManager, physicalCost, physicalNetwork, smoothing, TRADITIONAL_STATIC_ASSIGNMENT, trafficAssignmentBuilder, transportNetwork, virtualCost
-
Fields inherited from class org.planit.trafficassignment.TrafficAssignmentComponent
groupId, id, trafficComponentType
-
-
Constructor Summary
Constructors Constructor Description ELTM(IdGroupingToken groupId)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddRegisteredEventTypeListeners(org.djutils.event.EventType eventType)register all the known listeners for the passed in eventType on this producer for this event typeOutputTypeAdaptercreateOutputTypeAdapter(OutputType outputType)Create the output type adapter for the current output typeprotected TrafficAssignmentBuildercreateTrafficAssignmentBuilder(InputBuilderListener trafficComponentCreateListener, Demands demands, Zoning zoning, PhysicalNetwork physicalNetwork)create the traffic assignment builder for this traffic assignmentvoidexecuteEquilibration()Run equilibration after resources initialized, including saving resultsSimulationDatagetSimulationData()Return the simulation data for the current iteration-
Methods inherited from class org.planit.trafficassignment.CapacityConstrainedAssignment
setFundamentalDiagram, setNodeModel
-
Methods inherited from class org.planit.trafficassignment.TrafficAssignment
activateOutput, checkForEmptyComponents, collectBuilder, createLoggingPrefix, createTransportNetwork, deactivateOutput, disbandTransportNetwork, execute, finalizeAfterExecution, getGapFunction, getOutputConfiguration, getOutputFormatters, getPhysicalCost, getSmoothing, getTransportNetwork, getVirtualCost, initialiseBeforeExecution, isOutputTypeActive, registerOutputFormatter, setDemands, setGapFunction, setInitialLinkSegmentCost, setInitialLinkSegmentCost, setPhysicalCost, setPhysicalNetwork, setSmoothing, setVirtualCost, setZoning, unregisterOutputFormatter, verifyComponentCompatibility
-
Methods inherited from class org.planit.trafficassignment.TrafficAssignmentComponent
getId, getIdGroupingtoken, getSourceId, getTrafficComponentType
-
Methods inherited from class org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, getEventTypesWithListeners, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener
-
-
-
-
Constructor Detail
-
ELTM
public ELTM(IdGroupingToken groupId)
Constructor- Parameters:
groupId- contiguous id generation within this group for instances of this class
-
-
Method Detail
-
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:
addRegisteredEventTypeListenersin classTrafficAssignment- Parameters:
eventType- the event type to register
-
createOutputTypeAdapter
public OutputTypeAdapter createOutputTypeAdapter(OutputType outputType)
Create the output type adapter for the current output type- Specified by:
createOutputTypeAdapterin classTrafficAssignment- Parameters:
outputType- the current output type- Returns:
- the output type adapter corresponding to the current traffic assignment and output type
-
getSimulationData
public SimulationData getSimulationData()
Return the simulation data for the current iteration- Specified by:
getSimulationDatain classTrafficAssignment- Returns:
- the simulation data for the current iteration
-
executeEquilibration
public void executeEquilibration() throws PlanItExceptionRun equilibration after resources initialized, including saving results- Specified by:
executeEquilibrationin classTrafficAssignment- Throws:
PlanItException- thrown if there is an error
-
createTrafficAssignmentBuilder
protected TrafficAssignmentBuilder createTrafficAssignmentBuilder(InputBuilderListener trafficComponentCreateListener, Demands demands, Zoning zoning, PhysicalNetwork physicalNetwork)
Description copied from class:TrafficAssignmentcreate the traffic assignment builder for this traffic assignment- Specified by:
createTrafficAssignmentBuilderin classTrafficAssignment- Parameters:
trafficComponentCreateListener- listener to register on all traffic assignment components that this builder can builddemands- the demands this assignment works onzoning- the zoning this assignment works onphysicalNetwork- the physical network this assignment works on- Returns:
- created traffic assignment builder
-
-