|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.spatial.network.lod.LogicalNetLinkImpl
public class LogicalNetLinkImpl
Default implementation of LogicalNetLink.
Constructor Summary | |
---|---|
LogicalNetLinkImpl(long id, int level, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, CategorizedUserData userData) |
Method Summary | |
---|---|
java.lang.Object |
clone() Support cloneable. |
CategorizedUserData |
getCategorizedUserData() Returns categorized user data. |
double |
getCost() Returns the cost of this link. |
LogicalNetNode |
getEndNode() Returns the reference to the end node. |
long |
getEndNodeId() Returns the end node ID. |
long |
getId() Returns the link ID. |
int |
getLevel() Returns the link level. |
LogicalNetNode |
getStartNode() Returns the reference to the start node. |
long |
getStartNodeId() Returns the start node ID. |
java.util.Map<java.lang.String,java.lang.Object> |
getUserData() Deprecated. |
UserData |
getUserData(int category) Returns user data for the specified category. |
UserData |
getUserData(int category) Returns user data for the specified category. |
java.lang.Object |
getUserData(java.lang.String dataName) Deprecated. |
boolean |
isActive() Checks whether the link is active. |
boolean |
isBidirected() Checks whether this link is bidirected or not. |
void |
setCategorizedUserData(CategorizedUserData cud) Sets categorized user data. |
void |
setCost(double cost) Sets the cost of this link. |
void |
setEndNode(LogicalNetNode endNode) Sets the reference to the end node of this link. |
void |
setEndNodeId(long endNodeId) Sets the end node ID. |
void |
setIsActive(boolean isActive) Sets whether the link is active. |
void |
setIsBidirected(boolean isBidirected) Sets whether the link is bidirected or not. |
void |
setStartNode(LogicalNetNode startNode) Sets the reference to the start node of this link. |
void |
setStartNodeId(long startNodeId) Sets the start node ID. |
void |
setUserData(int category, UserData userData) Sets user data for the specified category. |
void |
setUserData(int category, UserData userData) Sets user data for the specified category. |
void |
setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap) Deprecated. |
void |
setUserData(java.lang.String dataName, java.lang.Object dataValue) Deprecated. |
LogicalNetLink |
toLogicalNetLink(LogicalBasicNetwork network) Converts the standalone link to a network link |
LogicalLink |
toStandAloneLink() Returns a new instance of a standalone link, which has the same properties as this link. |
void |
update(LogicalLink link) Copies the attributes of the input link to this link. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.spatial.network.lod.LogicalLink |
---|
getCategorizedUserData, getCost, getEndNodeId, getId, getLevel, getStartNodeId, getUserData, getUserData, isActive, isBidirected, setCategorizedUserData, setCost, setEndNodeId, setIsActive, setIsBidirected, setStartNodeId, setUserData, setUserData, toLogicalNetLink, update |
Constructor Detail |
---|
public LogicalNetLinkImpl(long id, int level, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, CategorizedUserData userData)
Method Detail |
---|
public LogicalNetNode getStartNode()
LogicalNetLink
getStartNode
in interface LogicalNetLink
public LogicalNetNode getEndNode()
LogicalNetLink
getEndNode
in interface LogicalNetLink
public void setStartNode(LogicalNetNode startNode)
LogicalNetLink
setStartNode
in interface LogicalNetLink
startNode
- start nodepublic void setEndNode(LogicalNetNode endNode)
LogicalNetLink
setEndNode
in interface LogicalNetLink
endNode
- end nodepublic LogicalLink toStandAloneLink()
LogicalNetLink
toStandAloneLink
in interface LogicalNetLink
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
LogicalLink
clone
in interface LogicalLink
clone
in interface LogicalNetLink
java.lang.CloneNotSupportedException
public UserData getUserData(int category)
public void setUserData(int category, UserData userData)
userData
-public long getId()
LogicalLink
getId
in interface LogicalLink
public int getLevel()
LogicalLink
getLevel
in interface LogicalLink
public long getStartNodeId()
LogicalLink
getStartNodeId
in interface LogicalLink
public void setStartNodeId(long startNodeId)
LogicalLink
setStartNodeId
in interface LogicalLink
startNodeId
- start node IDpublic long getEndNodeId()
LogicalLink
getEndNodeId
in interface LogicalLink
public void setEndNodeId(long endNodeId)
LogicalLink
setEndNodeId
in interface LogicalLink
endNodeId
- end node IDpublic double getCost()
LogicalLink
getCost
in interface LogicalLink
public void setCost(double cost)
LogicalLink
setCost
in interface LogicalLink
cost
- link costpublic boolean isBidirected()
LogicalLink
isBidirected
in interface LogicalLink
public boolean isActive()
LogicalLink
isActive
in interface LogicalLink
public void setIsActive(boolean isActive)
LogicalLink
setIsActive
in interface LogicalLink
isActive
- true if the link is active; false otherwise.public void setIsBidirected(boolean isBidirected)
LogicalLink
setIsBidirected
in interface LogicalLink
isBidirected
- true, if this link is bidirected; false, othereise.public LogicalNetLink toLogicalNetLink(LogicalBasicNetwork network)
LogicalLink
toLogicalNetLink
in interface LogicalLink
network
- the network that contains the linkpublic void update(LogicalLink link)
LogicalLink
update
in interface LogicalLink
link
- link to copy frompublic java.lang.Object getUserData(java.lang.String dataName)
dataName
- name of the user datapublic void setUserData(java.lang.String dataName, java.lang.Object dataValue)
dataName
- name of the user datadataValue
- value of the user datapublic java.util.Map<java.lang.String,java.lang.Object> getUserData()
public void setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap)
userDataMap
- user Datapublic CategorizedUserData getCategorizedUserData()
public void setCategorizedUserData(CategorizedUserData cud)
public UserData getUserData(int category)
public void setUserData(int category, UserData userData)
|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |