Package org.planit.zoning
Class DirectedConnectoidImpl
- java.lang.Object
-
- org.planit.utils.id.ExternalIdAbleImpl
-
- org.planit.zoning.ConnectoidImpl
-
- org.planit.zoning.DirectedConnectoidImpl
-
- All Implemented Interfaces:
Comparable<Idable>
,Iterable<Zone>
,ExternalIdable
,Idable
,Connectoid
,DirectedConnectoid
public class DirectedConnectoidImpl extends ConnectoidImpl implements DirectedConnectoid
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 LinkSegment
accessEdgeSegment
the access point to an infrastructure layerprotected boolean
nodeAccessDownstream
the node access given an access edge segment is either up or downstream-
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
-
Fields inherited from interface org.planit.utils.zoning.DirectedConnectoid
DEFAULT_NODE_ACCESS_DOWNSTREAM
-
-
Constructor Summary
Constructors Modifier Constructor Description DirectedConnectoidImpl(IdGroupingToken idToken, LinkSegment accessEdgeSegment)
Constructorprotected
DirectedConnectoidImpl(IdGroupingToken idToken, LinkSegment accessLinkSegment, Zone accessZone, double length)
Constructorprotected
DirectedConnectoidImpl(DirectedConnectoidImpl connectoidImpl)
Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkSegment
getAccessLinkSegment()
the edge segment that provides accessboolean
isNodeAccessDownstream()
determine if the node access is downstream or notprotected void
setAccessLinkSegment(LinkSegment accessEdgeSegment)
Set the accessEdgeSegmentvoid
setNodeAccessDownstream(boolean nodeAccessDownstream)
set if the node access is downstream or not-
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.zoning.DirectedConnectoid
getAccessNode
-
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
-
accessEdgeSegment
protected LinkSegment accessEdgeSegment
the access point to an infrastructure layer
-
nodeAccessDownstream
protected boolean nodeAccessDownstream
the node access given an access edge segment is either up or downstream
-
-
Constructor Detail
-
DirectedConnectoidImpl
protected DirectedConnectoidImpl(IdGroupingToken idToken, LinkSegment accessLinkSegment, Zone accessZone, double length)
Constructor- Parameters:
idToken
- contiguous id generation within this group for instances of this classaccessLinkSegment
- the link segment in the network (layer) the connectoid connects with (possibly via its downstream node)accessZone
- for the connectoidlength
- for the connection (not of the edge segment, but to access the zone)
-
DirectedConnectoidImpl
public DirectedConnectoidImpl(IdGroupingToken idToken, LinkSegment accessEdgeSegment)
Constructor- Parameters:
idToken
- contiguous id generation within this group for instances of this classaccessEdgeSegment
- the edge segment in the network (layer) the connectoid connects with (possibly via its downstream node)
-
DirectedConnectoidImpl
protected DirectedConnectoidImpl(DirectedConnectoidImpl connectoidImpl)
Copy constructor- Parameters:
connectoidImpl
- to copy
-
-
Method Detail
-
setAccessLinkSegment
protected void setAccessLinkSegment(LinkSegment accessEdgeSegment)
Set the accessEdgeSegment- Parameters:
accessEdgeSegment
- to use
-
getAccessLinkSegment
public LinkSegment getAccessLinkSegment()
the edge segment that provides access- Specified by:
getAccessLinkSegment
in interfaceDirectedConnectoid
- Returns:
- access edge segment
-
isNodeAccessDownstream
public boolean isNodeAccessDownstream()
determine if the node access is downstream or not- Specified by:
isNodeAccessDownstream
in interfaceDirectedConnectoid
- Returns:
- true when downstream, false otherwise, i.e., upstream
-
setNodeAccessDownstream
public void setNodeAccessDownstream(boolean nodeAccessDownstream)
set if the node access is downstream or not- Specified by:
setNodeAccessDownstream
in interfaceDirectedConnectoid
- Parameters:
nodeAccessDownstream
- true to set it downstream, false otherwise
-
-