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 classPhysicalNetwork.LinksInternal class for all Link specific codeclassPhysicalNetwork.LinkSegmentsInternal class for LinkSegment specific code (non-physical link segments are placed in the zoning)classPhysicalNetwork.ModesInternal class for all Mode specific codeclassPhysicalNetwork.NodesInternal class for all Node specific code
-
Field Summary
Fields Modifier and Type Field Description PhysicalNetwork.Linkslinksinternal class instance containing all link specific functionalityPhysicalNetwork.LinkSegmentslinkSegmentsinternal class instance containing all link segment specific functionalitystatic StringMACROSCOPICNETWORKPhysicalNetwork.Modesmodesinternal class instance containing all modes specific functionalityprotected PhysicalNetworkBuildernetworkBuilderNetwork builder responsible for constructing all network related (derived) instancesPhysicalNetwork.Nodesnodesinternal 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 IdGroupingTokengetNetworkIdGroupingToken()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
-
-