Class MacroscopicPhysicalNetwork
- java.lang.Object
-
- org.planit.network.InfrastructureLayerImpl
-
- org.planit.network.physical.PhysicalNetwork<Node,Link,MacroscopicLinkSegment>
-
- org.planit.network.macroscopic.physical.MacroscopicPhysicalNetwork
-
- All Implemented Interfaces:
Comparable<Idable>
,InfrastructureLayer
,ExternalIdable
,Idable
public class MacroscopicPhysicalNetwork extends PhysicalNetwork<Node,Link,MacroscopicLinkSegment> implements InfrastructureLayer
Macroscopic physical Network (layer) that supports one or more modes and link segment types, where the modes are registered on the network (Infrastructure network) level- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description MacroscopicLinkSegmentTypes
linkSegmentTypes
-
Fields inherited from class org.planit.network.physical.PhysicalNetwork
links, linkSegments, nodes
-
Fields inherited from class org.planit.network.InfrastructureLayerImpl
externalId, id, supportedModes, xmlId
-
-
Constructor Summary
Constructors Constructor Description MacroscopicPhysicalNetwork(IdGroupingToken groupId)
ConstructorMacroscopicPhysicalNetwork(IdGroupingToken groupId, MacroscopicPhysicalNetworkBuilder<? extends Node,? extends Link,? extends MacroscopicLinkSegment> customBuilder)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MacroscopicLinkSegmentTypes
getLinkSegmentTypes()
collect the link segment types, alternative to using the public memberprotected MacroscopicPhysicalNetworkBuilder<? extends Node,? extends Link,? extends MacroscopicLinkSegment>
getMacroscopicNetworkBuilder()
collect the builder as macroscopic network builder-
Methods inherited from class org.planit.network.physical.PhysicalNetwork
breakLinkAt, breakLinksAt, getGraph, getLinks, getLinkSegments, getNetworkBuilder, getNetworkIdGroupingToken, getNodes, isEmpty, logInfo, removeDanglingSubnetworks, removeDanglingSubnetworks, transform, validate
-
Methods inherited from class org.planit.network.InfrastructureLayerImpl
generateId, getExternalId, getId, getSupportedModes, getXmlId, registerSupportedMode, registerSupportedModes, setExternalId, setId, setXmlId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.planit.utils.id.ExternalIdable
getExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId
-
Methods inherited from interface org.planit.utils.id.Idable
compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface org.planit.network.InfrastructureLayer
getSupportedModes, isEmpty, logInfo, registerSupportedMode, registerSupportedModes, removeDanglingSubnetworks, removeDanglingSubnetworks, supports, transform, validate
-
-
-
-
Field Detail
-
linkSegmentTypes
public final MacroscopicLinkSegmentTypes linkSegmentTypes
-
-
Constructor Detail
-
MacroscopicPhysicalNetwork
public MacroscopicPhysicalNetwork(IdGroupingToken groupId)
Constructor- Parameters:
groupId
- contiguous id generation within this group for instances of this class
-
MacroscopicPhysicalNetwork
public MacroscopicPhysicalNetwork(IdGroupingToken groupId, MacroscopicPhysicalNetworkBuilder<? extends Node,? extends Link,? extends MacroscopicLinkSegment> customBuilder)
Constructor- Parameters:
groupId
- contiguous id generation within this group for instances of this classcustomBuilder
- a customBuilder
-
-
Method Detail
-
getMacroscopicNetworkBuilder
protected MacroscopicPhysicalNetworkBuilder<? extends Node,? extends Link,? extends MacroscopicLinkSegment> getMacroscopicNetworkBuilder()
collect the builder as macroscopic network builder- Returns:
- macroscopic network builder of this network
-
getLinkSegmentTypes
public MacroscopicLinkSegmentTypes getLinkSegmentTypes()
collect the link segment types, alternative to using the public member- Returns:
- the link segment types
-
-