|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogicalLink
This interface defines a standalone link.
Method Summary | |
---|---|
java.lang.Object |
clone() Support cloneable. |
double |
getCost() Returns the cost of this link. |
long |
getEndNodeId() Returns the end node ID. |
long |
getId() Returns the link ID. |
int |
getLevel() Returns the link level. |
long |
getStartNodeId() Returns the start node ID. |
java.util.Map<java.lang.String,java.lang.Object> |
getUserData() Returns all the user data name value pairs. |
java.lang.Object |
getUserData(java.lang.String dataName) Returns the user data object for the specified data name. |
boolean |
isActive() Checks whether the link is active. |
boolean |
isBidirected() Checks whether this link is bidirected or not. |
void |
setCost(double cost) Sets the cost 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 |
setStartNodeId(long startNodeId) Sets the start node ID. |
void |
setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap) Sets the value of the user data. |
void |
setUserData(java.lang.String dataName, java.lang.Object dataValue) Sets the value of the user data. |
LogicalNetLink |
toLogicalNetLink(LogicalBasicNetwork network) Converts the standalone link to a network link |
void |
update(LogicalLink link) Copies the attributes of the input link to this link. |
Method Detail |
---|
long getId()
int getLevel()
long getStartNodeId()
void setStartNodeId(long startNodeId)
startNodeId
- start node IDlong getEndNodeId()
void setEndNodeId(long endNodeId)
endNodeId
- end node IDdouble getCost()
void setCost(double cost)
cost
- link costboolean isBidirected()
void setIsBidirected(boolean isBidirected)
isBidirected
- true, if this link is bidirected; false, othereise.java.lang.Object getUserData(java.lang.String dataName)
dataName
- name of the user datavoid setUserData(java.lang.String dataName, java.lang.Object dataValue)
dataName
- name of the user datadataValue
- value of the user datajava.util.Map<java.lang.String,java.lang.Object> getUserData()
void setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap)
userDataMap
- a map of userdata name value pairsLogicalNetLink toLogicalNetLink(LogicalBasicNetwork network)
network
- the network that contains the linkboolean isActive()
void setIsActive(boolean isActive)
isActive
- true if the link is active; false otherwise.void update(LogicalLink link)
link
- link to copy fromjava.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |