|
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()
LogicalNetNode
getPartitionId
in interface LogicalNetNode
public void setPartitionId(int partitionId)
LogicalNetNode
setPartitionId
in interface LogicalNetNode
public LogicalNetLink[] getInLinks(boolean activeOnly)
LogicalNetNode
getInLinks
in interface LogicalNetNode
public LogicalNetLink[] getOutLinks(boolean activeOnly)
LogicalNetNode
getOutLinks
in interface LogicalNetNode
public LogicalNetLink[] getIncidentLinks(boolean activeOnly)
LogicalNetNode
getIncidentLinks
in interface LogicalNetNode
public int getNumberOfInLinks()
LogicalNetNode
getNumberOfInLinks
in interface LogicalNetNode
public int getNumberOfOutLinks()
LogicalNetNode
getNumberOfOutLinks
in interface LogicalNetNode
public void addInLink(LogicalNetLink link)
LogicalNetNode
addInLink
in interface LogicalNetNode
link
- incoming linkpublic void addOutLink(LogicalNetLink link)
LogicalNetNode
addOutLink
in interface LogicalNetNode
link
- outgoing linkpublic long[] getPreviousNodeIds(boolean activeOnly)
LogicalNetNode
getPreviousNodeIds
in interface LogicalNetNode
public long[] getNextNodeIds(boolean activeOnly)
LogicalNetNode
getNextNodeIds
in interface LogicalNetNode
public long[] getAdjacentNodeIds(boolean activeOnly)
LogicalNetNode
getAdjacentNodeIds
in interface LogicalNetNode
public void removeInLink(long linkId)
LogicalNetNode
removeInLink
in interface LogicalNetNode
linkId
- link IDpublic void removeOutLink(long linkId)
LogicalNetNode
removeOutLink
in interface LogicalNetNode
linkId
- link IDpublic LogicalNode toStandAloneNode()
LogicalNetNode
toStandAloneNode
in interface LogicalNetNode
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
LogicalNetNode
clone
in interface LogicalNetNode
java.lang.CloneNotSupportedException
public 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 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()
LogicalNode
getId
in interface LogicalNode
public double getCost()
LogicalNode
getCost
in interface LogicalNode
public void setCost(double cost)
LogicalNode
setCost
in interface LogicalNode
cost
- node costpublic int getMaxLinkLevel()
LogicalNode
getMaxLinkLevel
in interface LogicalNode
public void setMaxLinkLevel(int maxLinkLevel)
LogicalNode
setMaxLinkLevel
in interface LogicalNode
maxLinkLevel
- maximum link level of the links incident to this nodepublic boolean isActive()
LogicalNode
isActive
in interface LogicalNode
public void setIsActive(boolean isActive)
LogicalNode
setIsActive
in interface LogicalNode
isActive
- true if the node is active; false otherwise.public void update(LogicalNode node)
LogicalNode
update
in interface LogicalNode
node
- node containing the attributes 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 |