Package org.planit.network.physical
Class PhysicalNetwork
- java.lang.Object
-
- org.djutils.event.EventProducer
-
- org.planit.trafficassignment.TrafficAssignmentComponent<PhysicalNetwork>
-
- org.planit.network.physical.PhysicalNetwork
-
- All Implemented Interfaces:
Serializable
,org.djutils.event.EventProducerInterface
- Direct Known Subclasses:
MacroscopicNetwork
public class PhysicalNetwork extends TrafficAssignmentComponent<PhysicalNetwork> implements Serializable
Model free Network consisting of nodes and links, each of which can be iterated over. This network does not contain any transport specific information, hence the qualification "model free".- Author:
- markr
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PhysicalNetwork.Links
Internal class for all Link specific codeclass
PhysicalNetwork.LinkSegments
Internal class for LinkSegment specific code (non-physical link segments are placed in the zoning)class
PhysicalNetwork.Modes
Internal class for all Mode specific codeclass
PhysicalNetwork.Nodes
Internal class for all Node specific code
-
Field Summary
Fields Modifier and Type Field Description PhysicalNetwork.Links
links
internal class instance containing all link specific functionalityPhysicalNetwork.LinkSegments
linkSegments
internal class instance containing all link segment specific functionalitystatic String
MACROSCOPICNETWORK
PhysicalNetwork.Modes
modes
internal class instance containing all modes specific functionalityprotected PhysicalNetworkBuilder
networkBuilder
Network builder responsible for constructing all network related (derived) instancesPhysicalNetwork.Nodes
nodes
internal class instance containing all nodes specific functionality-
Fields inherited from class org.planit.trafficassignment.TrafficAssignmentComponent
groupId, id, trafficComponentType
-
-
Constructor Summary
Constructors Constructor Description PhysicalNetwork(IdGroupingToken groupId, PhysicalNetworkBuilder networkBuilder)
Network Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdGroupingToken
getNetworkIdGroupingToken()
Collect the id grouping token used for all entities registered on the network, i.e., this network's specific identifier for generating ids unique and contiguous within this network and this network only-
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
-
-
-
-
Field Detail
-
networkBuilder
protected final PhysicalNetworkBuilder networkBuilder
Network builder responsible for constructing all network related (derived) instances
-
MACROSCOPICNETWORK
public static final String MACROSCOPICNETWORK
-
links
public final PhysicalNetwork.Links links
internal class instance containing all link specific functionality
-
linkSegments
public final PhysicalNetwork.LinkSegments linkSegments
internal class instance containing all link segment specific functionality
-
nodes
public final PhysicalNetwork.Nodes nodes
internal class instance containing all nodes specific functionality
-
modes
public final PhysicalNetwork.Modes modes
internal class instance containing all modes specific functionality
-
-
Constructor Detail
-
PhysicalNetwork
public PhysicalNetwork(IdGroupingToken groupId, PhysicalNetworkBuilder networkBuilder)
Network Constructor- Parameters:
groupId
- contiguous id generation within this group for instances of this classnetworkBuilder
- the builder to be used to create this network
-
-
Method Detail
-
getNetworkIdGroupingToken
public IdGroupingToken getNetworkIdGroupingToken()
Collect the id grouping token used for all entities registered on the network, i.e., this network's specific identifier for generating ids unique and contiguous within this network and this network only- Returns:
- the network id grouping token
-
-