Package org.planit.cost.virtual
Class AbstractVirtualCost
- java.lang.Object
-
- org.djutils.event.EventProducer
-
- org.planit.assignment.TrafficAssignmentComponent<AbstractVirtualCost>
-
- org.planit.cost.virtual.AbstractVirtualCost
-
- All Implemented Interfaces:
Serializable
,Comparable<Idable>
,org.djutils.event.EventProducerInterface
,Cost<ConnectoidSegment>
,VirtualCost
,Idable
- Direct Known Subclasses:
FixedConnectoidTravelTimeCost
,SpeedConnectoidTravelTimeCost
public abstract class AbstractVirtualCost extends TrafficAssignmentComponent<AbstractVirtualCost> implements VirtualCost
Object to handle the travel time cost of a virtual link- Author:
- markr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.planit.assignment.TrafficAssignmentComponent
id, tokenId, trafficComponentType
-
Fields inherited from interface org.djutils.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
-
Fields inherited from interface org.planit.cost.virtual.VirtualCost
FIXED, SPEED
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractVirtualCost(IdGroupingToken groupId)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
initialiseBeforeSimulation(VirtualNetwork virtualNetwork)
Initialize the virtual cost component-
Methods inherited from class org.planit.assignment.TrafficAssignmentComponent
equals, getId, getIdGroupingToken, getSourceId, getTrafficComponentType, hashCode
-
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.planit.cost.Cost
getSegmentCost
-
Methods inherited from interface org.planit.utils.id.Idable
compareTo, idEquals, idHashCode
-
Methods inherited from interface org.planit.cost.virtual.VirtualCost
populateWithCost
-
-
-
-
Constructor Detail
-
AbstractVirtualCost
protected AbstractVirtualCost(IdGroupingToken groupId)
Constructor- Parameters:
groupId
- , contiguous id generation within this group for instances of this class
-
-
Method Detail
-
initialiseBeforeSimulation
public abstract void initialiseBeforeSimulation(VirtualNetwork virtualNetwork) throws PlanItException
Initialize the virtual cost component- Parameters:
virtualNetwork
- the virtual network- Throws:
PlanItException
- thrown if a link/mode combination exists for which no cost parameters have been set
-
-