|
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()
LogicalNetLinkgetStartNode in interface LogicalNetLinkpublic LogicalNetNode getEndNode()
LogicalNetLinkgetEndNode in interface LogicalNetLinkpublic void setStartNode(LogicalNetNode startNode)
LogicalNetLinksetStartNode in interface LogicalNetLinkstartNode - start nodepublic void setEndNode(LogicalNetNode endNode)
LogicalNetLinksetEndNode in interface LogicalNetLinkendNode - end nodepublic LogicalLink toStandAloneLink()
LogicalNetLinktoStandAloneLink in interface LogicalNetLink
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
LogicalLinkclone in interface LogicalLinkclone in interface LogicalNetLinkjava.lang.CloneNotSupportedExceptionpublic UserData getUserData(int category)
public void setUserData(int category,
UserData userData)
userData -public long getId()
LogicalLinkgetId in interface LogicalLinkpublic int getLevel()
LogicalLinkgetLevel in interface LogicalLinkpublic long getStartNodeId()
LogicalLinkgetStartNodeId in interface LogicalLinkpublic void setStartNodeId(long startNodeId)
LogicalLinksetStartNodeId in interface LogicalLinkstartNodeId - start node IDpublic long getEndNodeId()
LogicalLinkgetEndNodeId in interface LogicalLinkpublic void setEndNodeId(long endNodeId)
LogicalLinksetEndNodeId in interface LogicalLinkendNodeId - end node IDpublic double getCost()
LogicalLinkgetCost in interface LogicalLinkpublic void setCost(double cost)
LogicalLinksetCost in interface LogicalLinkcost - link costpublic boolean isBidirected()
LogicalLinkisBidirected in interface LogicalLinkpublic boolean isActive()
LogicalLinkisActive in interface LogicalLinkpublic void setIsActive(boolean isActive)
LogicalLinksetIsActive in interface LogicalLinkisActive - true if the link is active; false otherwise.public void setIsBidirected(boolean isBidirected)
LogicalLinksetIsBidirected in interface LogicalLinkisBidirected - true, if this link is bidirected; false, othereise.public LogicalNetLink toLogicalNetLink(LogicalBasicNetwork network)
LogicalLinktoLogicalNetLink in interface LogicalLinknetwork - the network that contains the linkpublic void update(LogicalLink link)
LogicalLinkupdate in interface LogicalLinklink - link to copy frompublic java.lang.Object getUserData(java.lang.String dataName)
dataName - name of the user data
public 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 | ||||||||