Class ConjugateBushFlowUpdateConsumerImpl<T extends NetworkFlowUpdateData>
- java.lang.Object
-
- org.goplanit.assignment.ltm.sltm.conjugate.ConjugateBushFlowUpdateConsumerImpl<T>
-
- All Implemented Interfaces:
Consumer<ConjugateDestinationBush>
,BushFlowUpdateConsumer<ConjugateDestinationBush>
- Direct Known Subclasses:
ConjugateBushTurnFlowUpdateConsumer
public class ConjugateBushFlowUpdateConsumerImpl<T extends NetworkFlowUpdateData> extends Object implements BushFlowUpdateConsumer<ConjugateDestinationBush>
Conjugate Bush consumer to apply during conjugate bush based network loading flow update for each origin bushDerived implementation can apply different changes to each of the (turn/link) flows on the bushes by
- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description protected T
dataConfig
data and configuration used for a flow update by derived classes
-
Constructor Summary
Constructors Constructor Description ConjugateBushFlowUpdateConsumerImpl(T dataConfig)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ConjugateDestinationBush bush)
Update(increase) the (network) flows based on the bush at hand as dictated by the data configurationprotected void
applyAcceptedTurnFlowUpdate(ConjugateEdgeSegment turnSegment, double turnAcceptedFlowPcuH)
Register the conjugate bush accepted turn flow to the turn if required.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.assignment.ltm.sltm.consumer.BushFlowUpdateConsumer
getAcceptedTurnFlows
-
-
-
-
Field Detail
-
dataConfig
protected T extends NetworkFlowUpdateData dataConfig
data and configuration used for a flow update by derived classes
-
-
Constructor Detail
-
ConjugateBushFlowUpdateConsumerImpl
public ConjugateBushFlowUpdateConsumerImpl(T dataConfig)
Constructor- Parameters:
dataConfig
- to use
-
-
Method Detail
-
applyAcceptedTurnFlowUpdate
protected void applyAcceptedTurnFlowUpdate(ConjugateEdgeSegment turnSegment, double turnAcceptedFlowPcuH)
Register the conjugate bush accepted turn flow to the turn if required. Default implementation does nothing but provide a hook for derived classes that do require to do something with turn accepted flows- Parameters:
turnSegment
- of turnturnAcceptedFlowPcuH
- sending flow rate of turn
-
accept
public void accept(ConjugateDestinationBush bush)
Update(increase) the (network) flows based on the bush at hand as dictated by the data configuration- Specified by:
accept
in interfaceConsumer<T extends NetworkFlowUpdateData>
-
-