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