Package org.planit.zoning
Class UndirectedConnectoidImpl
- java.lang.Object
-
- org.planit.utils.id.ExternalIdAbleImpl
-
- org.planit.zoning.ConnectoidImpl
-
- org.planit.zoning.UndirectedConnectoidImpl
-
- All Implemented Interfaces:
Comparable<Idable>
,Iterable<Zone>
,ExternalIdable
,Idable
,Connectoid
,UndirectedConnectoid
public class UndirectedConnectoidImpl extends ConnectoidImpl implements UndirectedConnectoid
Undirected connectoid connecting one or more (transfer/OD) zone(s) to the physical road network, each connection will yield a connectoid edge and two connectoid segments when constructing the transport network internally based on the referenced node- Author:
- markr
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.planit.zoning.ConnectoidImpl
ConnectoidImpl.AccessZoneProperties
-
-
Field Summary
Fields Modifier and Type Field Description protected Node
accessNode
the access point to an infrastructure layer-
Fields inherited from class org.planit.zoning.ConnectoidImpl
accessZones, name, type
-
Fields inherited from interface org.planit.utils.zoning.Connectoid
DEFAULT_CONNECTOID_TYPE, DEFAULT_LENGTH_KM
-
-
Constructor Summary
Constructors Modifier Constructor Description UndirectedConnectoidImpl(IdGroupingToken idToken, Node accessNode)
Constructorprotected
UndirectedConnectoidImpl(IdGroupingToken idToken, Node accessNode, Zone accessZone, double length)
Constructorprotected
UndirectedConnectoidImpl(UndirectedConnectoidImpl connectoidImpl)
Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
getAccessNode()
Collect the physical node this connectoid proposes to create an acess point for its zoneprotected void
setAccessNode(Node accessNode)
Set the accessNode-
Methods inherited from class org.planit.zoning.ConnectoidImpl
addAccessZone, addAllowedMode, generateConnectoidId, getAccessZones, getFirstAccessZone, getLength, getName, getNumberOfAccessZones, getType, hasAccessZone, isModeAllowed, iterator, setLength, setName, setType
-
Methods inherited from class org.planit.utils.id.ExternalIdAbleImpl
getExternalId, getId, getXmlId, 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.zoning.Connectoid
addAccessZone, addAllowedMode, getAccessZones, getFirstAccessZone, getLength, getName, getNumberOfAccessZones, getType, hasAccessZone, isModeAllowed, setLength, setName, setType
-
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 java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Field Detail
-
accessNode
protected Node accessNode
the access point to an infrastructure layer
-
-
Constructor Detail
-
UndirectedConnectoidImpl
protected UndirectedConnectoidImpl(IdGroupingToken idToken, Node accessNode, Zone accessZone, double length)
Constructor- Parameters:
idToken
- contiguous id generation within this group for instances of this classaccessNode
- the node in the network (layer) the connectoid connects withaccessZone
- for the connectoidlength
- for the connection
-
UndirectedConnectoidImpl
public UndirectedConnectoidImpl(IdGroupingToken idToken, Node accessNode)
Constructor- Parameters:
idToken
- contiguous id generation within this group for instances of this classaccessNode
- the node in the network (layer) the connectoid connects with
-
UndirectedConnectoidImpl
protected UndirectedConnectoidImpl(UndirectedConnectoidImpl connectoidImpl)
Copy constructor- Parameters:
connectoidImpl
- to copy
-
-
Method Detail
-
setAccessNode
protected void setAccessNode(Node accessNode)
Set the accessNode- Parameters:
accessNode
- to use
-
getAccessNode
public Node getAccessNode()
Collect the physical node this connectoid proposes to create an acess point for its zone- Specified by:
getAccessNode
in interfaceUndirectedConnectoid
- Returns:
- access node
-
-