Class NFELink
- java.lang.Object
-
- oracle.spatial.network.nfe.model.NFEBasicModelObject
-
- oracle.spatial.network.nfe.model.network.NFENetworkElement
-
- oracle.spatial.network.nfe.model.network.NFELink
-
- All Implemented Interfaces:
NFEModelObject
- Direct Known Subclasses:
NFEBasicLink
public abstract class NFELink extends NFENetworkElement
Base class for representing network links.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROP_BIDIRECTEDLink bidirected propertystatic java.lang.StringPROP_END_NODELink's end node propertystatic java.lang.StringPROP_LEVELLink level propertystatic java.lang.StringPROP_PARENT_LINK_IDParent link id propertystatic java.lang.StringPROP_START_NODELink's start node property-
Fields inherited from class oracle.spatial.network.nfe.model.network.NFENetworkElement
PROP_ACTIVE, PROP_COST, PROP_GEOMETRY, PROP_ID, PROP_NAME
-
Fields inherited from interface oracle.spatial.network.nfe.model.NFEModelObject
EFLAG_EXISTING, EFLAG_REMOVED
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description NFENodegetEndNode()Gets the link's end nodejava.lang.StringgetKey()Gets the network element's key.abstract intgetLevel()Gets the link's levelabstract longgetParentLinkId()Gets the link's parent link ID (if any)NFENodegetStartNode()Gets the link's start nodeabstract booleanisBidirected()Tells whether the link is bidirected or notbooleanisLink()Tells whether the network element is a link or notbooleanisNode()Tells whether the network element is a node or notabstract voidsetBidirected(boolean bidirected)Sets whether the link is bidirected or notabstract voidsetLevel(int level)Sets the link's levelprotected voidsetNode(NFENode node, boolean setStartNode)Sets a node as start or end node, depending on the value of the setStatNode parameterabstract voidsetParentLinkId(long parentLinkId)Sets the link's parent link ID-
Methods inherited from class oracle.spatial.network.nfe.model.network.NFENetworkElement
createCopy, getCost, getGeometry, getId, getName, getNetwork, isActive, notifyPropertyChanged, setActive, setCost, setGeometry, setId, setName, setNetwork
-
Methods inherited from class oracle.spatial.network.nfe.model.NFEBasicModelObject
addEditionFlag, containsEditionFlag, getEditionFlags, removeEditionFlag, setEditionFlags
-
-
-
-
Field Detail
-
PROP_LEVEL
public static final java.lang.String PROP_LEVEL
Link level property- See Also:
- Constant Field Values
-
PROP_BIDIRECTED
public static final java.lang.String PROP_BIDIRECTED
Link bidirected property- See Also:
- Constant Field Values
-
PROP_PARENT_LINK_ID
public static final java.lang.String PROP_PARENT_LINK_ID
Parent link id property- See Also:
- Constant Field Values
-
PROP_START_NODE
public static final java.lang.String PROP_START_NODE
Link's start node property- See Also:
- Constant Field Values
-
PROP_END_NODE
public static final java.lang.String PROP_END_NODE
Link's end node property- See Also:
- Constant Field Values
-
-
Method Detail
-
setLevel
public abstract void setLevel(int level)
Sets the link's level- Parameters:
level- the link's level
-
getLevel
public abstract int getLevel()
Gets the link's level- Returns:
- the link's level
-
setBidirected
public abstract void setBidirected(boolean bidirected)
Sets whether the link is bidirected or not- Parameters:
bidirected- true for bidirected, false for single direction
-
isBidirected
public abstract boolean isBidirected()
Tells whether the link is bidirected or not- Returns:
- true for bidirected, false for single direction
-
setParentLinkId
public abstract void setParentLinkId(long parentLinkId)
Sets the link's parent link ID- Parameters:
parentLinkId- the link's parent link ID
-
getParentLinkId
public abstract long getParentLinkId()
Gets the link's parent link ID (if any)- Returns:
- the link's parent link ID or -1 if the link does not have a parent link
-
getStartNode
public NFENode getStartNode()
Gets the link's start node- Returns:
- an NFENode instance
-
getEndNode
public NFENode getEndNode()
Gets the link's end node- Returns:
- an NFENode instance
-
setNode
protected void setNode(NFENode node, boolean setStartNode)
Sets a node as start or end node, depending on the value of the setStatNode parameter- Parameters:
node- an NFENode instancesetStartNode- when it is true, the node is set as start node, otherwise, the node is set as end node
-
isNode
public boolean isNode()
Description copied from class:NFENetworkElementTells whether the network element is a node or not- Specified by:
isNodein classNFENetworkElement- Returns:
- true if the network element is a node
-
isLink
public boolean isLink()
Description copied from class:NFENetworkElementTells whether the network element is a link or not- Specified by:
isLinkin classNFENetworkElement- Returns:
- true if the network element is a link
-
getKey
public java.lang.String getKey()
Description copied from class:NFENetworkElementGets the network element's key. The key is a unique value to differentiate a network element among other network elements in the same network. There could be a node and a link with the same ID but cannot exist two network elements (node or links) with the same key- Specified by:
getKeyin classNFENetworkElement- Returns:
- the network element's key
-
-