Package org.goplanit.assignment
Class StaticTrafficAssignment
- java.lang.Object
-
- org.goplanit.component.PlanitComponent<NetworkLoading>
-
- org.goplanit.supply.networkloading.NetworkLoading
-
- org.goplanit.assignment.TrafficAssignment
-
- org.goplanit.assignment.StaticTrafficAssignment
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<IdAble>
,EventListener
,PlanitComponentListener
,InteractorAccessee
,TrafficAssignmentComponentAccessee
,EventListener
,ExternalIdAble
,IdAble
- Direct Known Subclasses:
AlgorithmB
,TraditionalStaticAssignment
public abstract class StaticTrafficAssignment extends TrafficAssignment
A static traffic assignment class with some commonalities implemented shared across static assignment implementations- Author:
- markr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.goplanit.assignment.TrafficAssignment
ALGORITHM_B, ELTM, initialLinkSegmentCostByTimePeriod, initialLinkSegmentCostTimePeriodAgnostic, SLTM, TRADITIONAL_STATIC_ASSIGNMENT
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StaticTrafficAssignment(StaticTrafficAssignment staticTrafficAssignment)
Copy Constructorprotected
StaticTrafficAssignment(IdGroupingToken groupId)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
executeEquilibration()
Execute equilibration over all time periods and modesprotected void
executeTimePeriod(TimePeriod timePeriod)
Perform assignment for a given time periodprotected abstract void
executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Execute the time period for the registered modes-
Methods inherited from class org.goplanit.assignment.TrafficAssignment
checkForEmptyComponents, createLoggingPrefix, createOutputTypeAdapter, createTransportNetwork, disbandTransportNetwork, execute, finalizeAfterExecution, getDemands, getGapFunction, getInfrastructureNetwork, getIterationIndex, getOutputManager, getPhysicalCost, getSmoothing, getTotalNumberOfNetworkSegments, getTotalNumberOfNetworkVertices, getTrafficAssignmentComponent, getTransportNetwork, getVirtualCost, getZoning, initialiseBeforeExecution, logRegisteredComponent, registerComponent, reset, setDemands, setGapFunction, setInfrastructureNetwork, setInitialLinkSegmentCost, setInitialLinkSegmentCost, setOutputManager, setPhysicalCost, setSmoothing, setVirtualCost, setZoning, verifyComponentCompatibility, verifyNetworkDemandZoningCompatibility
-
Methods inherited from class org.goplanit.component.PlanitComponent
clone, equals, getComponentType, getExternalId, getId, getIdGroupingToken, getKnownSupportedEventTypes, getXmlId, hashCode, onPlanitComponentEvent, setExternalId, setXmlId
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.event.EventListener
hasKnownSupportedEventTypes
-
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
hasExternalId, hasXmlId
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, idEquals, idHashCode
-
Methods inherited from interface org.goplanit.interactor.InteractorAccessee
getCompatibleAccessor
-
-
-
-
Constructor Detail
-
StaticTrafficAssignment
protected StaticTrafficAssignment(IdGroupingToken groupId)
Constructor- Parameters:
groupId
- for id generation
-
StaticTrafficAssignment
protected StaticTrafficAssignment(StaticTrafficAssignment staticTrafficAssignment)
Copy Constructor- Parameters:
staticTrafficAssignment
- to copy
-
-
Method Detail
-
executeTimePeriod
protected abstract void executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes) throws PlanItException
Execute the time period for the registered modes- Parameters:
timePeriod
- to executemodes
- to consider- Throws:
PlanItException
- thrown if error
-
executeTimePeriod
protected void executeTimePeriod(TimePeriod timePeriod) throws PlanItException
Perform assignment for a given time period- Parameters:
timePeriod
- the time period for the current assignment- Throws:
PlanItException
- thrown if there is an error
-
executeEquilibration
public void executeEquilibration() throws PlanItException
Execute equilibration over all time periods and modes- Specified by:
executeEquilibration
in classTrafficAssignment
- Throws:
PlanItException
- thrown if there is an error
-
-