public abstract class NFENode extends NFENetworkElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_HIERARCHY_LEVEL
The hierarchy level property
|
static java.lang.String |
PROP_PARENT_NODE_ID
The parent node id property
|
PROP_ACTIVE, PROP_COST, PROP_GEOMETRY, PROP_ID, PROP_NAME
EFLAG_EXISTING, EFLAG_REMOVED
Constructor and Description |
---|
NFENode() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getHierarchyLevel()
Gets the node's hierarchy level
|
abstract java.util.Collection<NFELink> |
getInLinks()
Gets all the in-links connected to the node
|
java.lang.String |
getKey()
Gets the network element's key.
|
abstract java.util.Collection<NFELink> |
getLinks()
Gets all the links (in and out) connected to the node
|
abstract int |
getNumberOfInLinks()
Gets the number of in-links connected to the node
|
abstract int |
getNumberOfLinks()
Gets the number of links (in and out) connected to the node
|
abstract int |
getNumberOfOutLinks()
Gets the number of out-links connected to the node
|
abstract java.util.Collection<NFELink> |
getOutLinks()
Gets all the out-links connected to the node
|
abstract long |
getParentNodeId()
Gets the node's parent node id if any
|
abstract long |
getPartitionId()
Gets the node's partition id
|
boolean |
isLink()
Tells whether the network element is a link or not
|
boolean |
isNode()
Tells whether the network element is a node or not
|
abstract void |
setHierarchyLevel(int hierarchyLevel)
Sets the node's hierarchy level
|
abstract void |
setParentNodeId(long parentNodeId)
Sets the node's parent node id
|
abstract void |
setPartitionId(long partitionId)
Sets the node's partition id
|
createCopy, getCost, getGeometry, getId, getName, getNetwork, isActive, setActive, setCost, setGeometry, setId, setName, setNetwork
addEditionFlag, containsEditionFlag, getEditionFlags, removeEditionFlag, setEditionFlags
public static final java.lang.String PROP_HIERARCHY_LEVEL
public static final java.lang.String PROP_PARENT_NODE_ID
public abstract void setHierarchyLevel(int hierarchyLevel)
hierarchyLevel
- the node's hierarchy levelpublic abstract int getHierarchyLevel()
public abstract void setParentNodeId(long parentNodeId)
parentNodeId
- the node's parent node idpublic abstract long getParentNodeId()
public abstract java.util.Collection<NFELink> getLinks()
public abstract java.util.Collection<NFELink> getInLinks()
public abstract java.util.Collection<NFELink> getOutLinks()
public abstract int getNumberOfLinks()
public abstract int getNumberOfInLinks()
public abstract int getNumberOfOutLinks()
public abstract long getPartitionId()
public abstract void setPartitionId(long partitionId)
partitionId
- the node's partition idpublic boolean isNode()
NFENetworkElement
isNode
in class NFENetworkElement
public boolean isLink()
NFENetworkElement
isLink
in class NFENetworkElement
public java.lang.String getKey()
NFENetworkElement
getKey
in class NFENetworkElement