|
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.LogicalNetNodeImpl
public class LogicalNetNodeImpl
Default implementation of LogicalNetNode.
| Constructor Summary | |
|---|---|
LogicalNetNodeImpl(long id, int partitionId, double cost, boolean isActive, int maxLinkLevel, int numInLinks, int numOutLinks, CategorizedUserData userData) |
|
| Method Summary | |
|---|---|
void |
addInLink(LogicalNetLink link)Adds an incoming link to this node. |
void |
addOutLink(LogicalNetLink link)Adds an outgoing link to this node. |
java.lang.Object |
clone()Support cloneable. |
long[] |
getAdjacentNodeIds(boolean activeOnly)Returns the IDs of all the nodes with a direct link to or from this node. |
CategorizedUserData |
getCategorizedUserData()Returns categorized user data. |
CategorizedUserData |
getCategorizedUserData()Returns categorized user data. |
double |
getCost()Returns the cost of this node. |
long |
getId()Returns the node ID |
LogicalNetLink[] |
getIncidentLinks(boolean activeOnly)Returns the IDs of all the links incident to this node. |
LogicalNetLink[] |
getInLinks(boolean activeOnly)Returns the array of incoming links to this node. |
int |
getMaxLinkLevel()Returns the maximum link level of the links incident to this node. |
long[] |
getNextNodeIds(boolean activeOnly)Returns the IDs of all the nodes with a direct link from this node. |
int |
getNumberOfInLinks()Returns the number of incoming links. |
int |
getNumberOfOutLinks()Returns the number of outgoing links. |
LogicalNetLink[] |
getOutLinks(boolean activeOnly)Returns the array of outgoing links from this node. |
int |
getPartitionId()Returns the partition ID. |
long[] |
getPreviousNodeIds(boolean activeOnly)Returns the IDs of all the nodes with a direct link to this node. |
java.util.Map<java.lang.String,java.lang.Object> |
getUserData()Deprecated. |
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. |
java.lang.Object |
getUserData(java.lang.String dataName)Deprecated. |
boolean |
isActive()Checks whether the node is active. |
void |
removeInLink(long linkId)Removes the incoming link with the specified link ID. |
void |
removeOutLink(long linkId)Removes the outgoing link with the specified link ID. |
void |
setCategorizedUserData(CategorizedUserData userData)Sets categorized user data. |
void |
setCategorizedUserData(CategorizedUserData cud)Sets categorized user data. |
void |
setCost(double cost)Sets the cost of this node. |
void |
setIsActive(boolean isActive)Sets whether this node is active. |
void |
setMaxLinkLevel(int maxLinkLevel)Sets the maximum link level of the links incident to this node. |
void |
setPartitionId(int partitionId)Sets the partition 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> userData)Deprecated. |
void |
setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap)Deprecated. |
void |
setUserData(java.lang.String dataName, java.lang.Object dataValue)Deprecated. |
void |
setUserData(java.lang.String dataName, java.lang.Object dataValue)Deprecated. |
LogicalNode |
toStandAloneNode()Returns a new instance of a standalone node, which has the same properties as this node. |
void |
update(LogicalNode node)Copies the attributes of the input node to this node. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.spatial.network.lod.LogicalNode |
|---|
getCost, getId, getMaxLinkLevel, isActive, setCost, setIsActive, setMaxLinkLevel, update |
| Constructor Detail |
|---|
public LogicalNetNodeImpl(long id,
int partitionId,
double cost,
boolean isActive,
int maxLinkLevel,
int numInLinks,
int numOutLinks,
CategorizedUserData userData)
| Method Detail |
|---|
public int getPartitionId()
LogicalNetNodegetPartitionId in interface LogicalNetNodepublic void setPartitionId(int partitionId)
LogicalNetNodesetPartitionId in interface LogicalNetNodepublic LogicalNetLink[] getInLinks(boolean activeOnly)
LogicalNetNodegetInLinks in interface LogicalNetNodepublic LogicalNetLink[] getOutLinks(boolean activeOnly)
LogicalNetNodegetOutLinks in interface LogicalNetNodepublic LogicalNetLink[] getIncidentLinks(boolean activeOnly)
LogicalNetNodegetIncidentLinks in interface LogicalNetNodepublic int getNumberOfInLinks()
LogicalNetNodegetNumberOfInLinks in interface LogicalNetNodepublic int getNumberOfOutLinks()
LogicalNetNodegetNumberOfOutLinks in interface LogicalNetNodepublic void addInLink(LogicalNetLink link)
LogicalNetNodeaddInLink in interface LogicalNetNodelink - incoming linkpublic void addOutLink(LogicalNetLink link)
LogicalNetNodeaddOutLink in interface LogicalNetNodelink - outgoing linkpublic long[] getPreviousNodeIds(boolean activeOnly)
LogicalNetNodegetPreviousNodeIds in interface LogicalNetNodepublic long[] getNextNodeIds(boolean activeOnly)
LogicalNetNodegetNextNodeIds in interface LogicalNetNodepublic long[] getAdjacentNodeIds(boolean activeOnly)
LogicalNetNodegetAdjacentNodeIds in interface LogicalNetNodepublic void removeInLink(long linkId)
LogicalNetNoderemoveInLink in interface LogicalNetNodelinkId - link IDpublic void removeOutLink(long linkId)
LogicalNetNoderemoveOutLink in interface LogicalNetNodelinkId - link IDpublic LogicalNode toStandAloneNode()
LogicalNetNodetoStandAloneNode in interface LogicalNetNode
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
LogicalNetNodeclone in interface LogicalNetNodejava.lang.CloneNotSupportedExceptionpublic 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 CategorizedUserData getCategorizedUserData()
public void setCategorizedUserData(CategorizedUserData userData)
userData -public UserData getUserData(int category)
public void setUserData(int category,
UserData userData)
userData -public java.util.Map<java.lang.String,java.lang.Object> getUserData()
public void setUserData(java.util.Map<java.lang.String,java.lang.Object> userData)
userData - user Datapublic long getId()
LogicalNodegetId in interface LogicalNodepublic double getCost()
LogicalNodegetCost in interface LogicalNodepublic void setCost(double cost)
LogicalNodesetCost in interface LogicalNodecost - node costpublic int getMaxLinkLevel()
LogicalNodegetMaxLinkLevel in interface LogicalNodepublic void setMaxLinkLevel(int maxLinkLevel)
LogicalNodesetMaxLinkLevel in interface LogicalNodemaxLinkLevel - maximum link level of the links incident to this nodepublic boolean isActive()
LogicalNodeisActive in interface LogicalNodepublic void setIsActive(boolean isActive)
LogicalNodesetIsActive in interface LogicalNodeisActive - true if the node is active; false otherwise.public void update(LogicalNode node)
LogicalNodeupdate in interface LogicalNodenode - node containing the attributes 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 | ||||||||