Package oracle.spatial.network.lod
Interface LogicalLink
-
- All Known Subinterfaces:
LogicalNetLink,SpatialLink,SpatialNetLink
- All Known Implementing Classes:
LogicalNetLinkImpl
public interface LogicalLinkThis interface defines a standalone link.- Since:
- 11gR1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectclone()Support cloneable.CategorizedUserDatagetCategorizedUserData()Returns categorized user data.doublegetCost()Returns the cost of this link.longgetEndNodeId()Returns the end node ID.longgetId()Returns the link ID.intgetLevel()Returns the link level.longgetStartNodeId()Returns the start node ID.UserDatagetUserData(int category)Returns user data for the specified category.booleanisActive()Checks whether the link is active.booleanisBidirected()Checks whether this link is bidirected or not.voidsetCategorizedUserData(CategorizedUserData userData)Sets categorized user data.voidsetCost(double cost)Sets the cost of this link.voidsetEndNodeId(long endNodeId)Sets the end node ID.voidsetIsActive(boolean isActive)Sets whether the link is active.voidsetIsBidirected(boolean isBidirected)Sets whether the link is bidirected or not.voidsetStartNodeId(long startNodeId)Sets the start node ID.voidsetUserData(int category, UserData userData)Sets user data for the specified category.LogicalNetLinktoLogicalNetLink(LogicalPartition partition)Converts the standalone link to a partition linkvoidupdate(LogicalLink link)Copies the attributes of the input link to this link.
-
-
-
Method Detail
-
getId
long getId()
Returns the link ID.- Returns:
- link ID
-
getLevel
int getLevel()
Returns the link level.- Returns:
- link level
-
getStartNodeId
long getStartNodeId()
Returns the start node ID.- Returns:
- start node ID
-
setStartNodeId
void setStartNodeId(long startNodeId)
Sets the start node ID.- Parameters:
startNodeId- start node ID
-
getEndNodeId
long getEndNodeId()
Returns the end node ID.- Returns:
- end node ID
-
setEndNodeId
void setEndNodeId(long endNodeId)
Sets the end node ID.- Parameters:
endNodeId- end node ID
-
getCost
double getCost()
Returns the cost of this link.- Returns:
- link cost
-
setCost
void setCost(double cost)
Sets the cost of this link.- Parameters:
cost- link cost
-
isBidirected
boolean isBidirected()
Checks whether this link is bidirected or not.- Returns:
- true, if this link is bidirected; false, otherwise.
-
setIsBidirected
void setIsBidirected(boolean isBidirected)
Sets whether the link is bidirected or not.- Parameters:
isBidirected- true, if this link is bidirected; false, otherwise.
-
toLogicalNetLink
LogicalNetLink toLogicalNetLink(LogicalPartition partition)
Converts the standalone link to a partition link- Parameters:
partition- the partition that contains the link- Returns:
-
isActive
boolean isActive()
Checks whether the link is active.- Returns:
- true if the link is active; false otherwise.
-
setIsActive
void setIsActive(boolean isActive)
Sets whether the link is active.- Parameters:
isActive- true if the link is active; false otherwise.
-
update
void update(LogicalLink link)
Copies the attributes of the input link to this link.- Parameters:
link- link to copy from
-
clone
java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionSupport cloneable.- Returns:
- cloned object
- Throws:
java.lang.CloneNotSupportedException
-
getCategorizedUserData
CategorizedUserData getCategorizedUserData()
Returns categorized user data.- Returns:
-
setCategorizedUserData
void setCategorizedUserData(CategorizedUserData userData)
Sets categorized user data.- Parameters:
userData-
-
getUserData
UserData getUserData(int category)
Returns user data for the specified category.- Returns:
-
setUserData
void setUserData(int category, UserData userData)Sets user data for the specified category.- Parameters:
userData-
-
-