public class NFEBasicLink extends NFELink
NFELink
PROP_BIDIRECTED, PROP_END_NODE, PROP_LEVEL, PROP_PARENT_LINK_ID, PROP_START_NODE
PROP_ACTIVE, PROP_COST, PROP_GEOMETRY, PROP_ID, PROP_NAME
EFLAG_EXISTING, EFLAG_REMOVED
Constructor and Description |
---|
NFEBasicLink(NFENode startNode,
NFENode endNode) |
Modifier and Type | Method and Description |
---|---|
NFENetworkElement |
createCopy()
Returns object copy.
|
int |
getLevel()
Gets the link's level
|
long |
getParentLinkId()
Gets the link's parent link ID (if any)
|
boolean |
isBidirected()
Tells whether the link is bidirected or not
|
void |
setBidirected(boolean bidirected)
Sets whether the link is bidirected or not
|
void |
setLevel(int level)
Sets the link's level
|
void |
setParentLinkId(long parentLinkId)
Sets the link's parent link ID
|
getEndNode, getKey, getStartNode, isLink, isNode
getCost, getGeometry, getId, getName, getNetwork, isActive, setActive, setCost, setGeometry, setId, setName, setNetwork
addEditionFlag, containsEditionFlag, getEditionFlags, removeEditionFlag, setEditionFlags
public void setLevel(int level)
NFELink
public int getLevel()
NFELink
public void setBidirected(boolean bidirected)
NFELink
setBidirected
in class NFELink
bidirected
- true for bidirected, false for single directionpublic boolean isBidirected()
NFELink
isBidirected
in class NFELink
public void setParentLinkId(long parentLinkId)
NFELink
setParentLinkId
in class NFELink
parentLinkId
- the link's parent link IDpublic long getParentLinkId()
NFELink
getParentLinkId
in class NFELink
public NFENetworkElement createCopy()
NFENetworkElement
createCopy
in class NFENetworkElement