|
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.NetworkBuffer
public class NetworkBuffer
A NetworkBuffer is defined by central points and the set of nodes and link intervals within certain radius from the cental points. A NetworkBuffer can return the minimum cost from a central point to any node or link interval covered by this NetworkBuffer.
Nested Class Summary | |
---|---|
static class |
NetworkBuffer.DoubleInterval This class defines a double interval. |
static class |
NetworkBuffer.Elements This class contains elements in a network buffer. |
static class |
NetworkBuffer.LinkIntervals An instance of this class contains a LogicalLink object and a list of intervals associated with the link object. |
Constructor Summary | |
---|---|
NetworkBuffer(double radius, int direction) Constructs a network buffer instance. |
Method Summary | |
---|---|
void |
addCentralPoint(PointOnNet centralPoint) Add a central point to network buffer. |
void |
addLinkIntervals(NetworkBuffer.LinkIntervals linkIntervals, double[] forwardLinkCosts, double[] backwardLinkCosts) Adds the intervals of a link. |
void |
addNode(LogicalNode node, double[] costs) Adds a node to the network buffer. |
PointOnNet[] |
getCentralPoints() Returns the central points. |
double[] |
getCosts(PointOnNet point) Returns the costs of the input point. |
int |
getDirection() Returns the direction (forward or backward) of the network buffer. |
NetworkBuffer.Elements |
getElements() Returns the elements in this network buffer. |
NetworkBuffer.DoubleInterval[] |
getLinkIntervalCosts(long linkId, NetworkBuffer.DoubleInterval interval) Returns the costs range to reach the input interval |
double[] |
getNodeCosts(long nodeId) Returns the minimum costs to reach the node from a central point. |
double |
getRadius() Returns the radius (size) of the network buffer. |
void |
removeCentralPoint(PointOnNet centralPoint) Removes a central point. |
void |
removeLink(long linkId) Removes the specified link and all associated intervals from the network buffer. |
void |
removeNode(long nodeId) Removes the specified node from the network buffer. |
NetworkBuffer |
subSet(double cost) Computes the subset of the network buffer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkBuffer(double radius, int direction)
Method Detail |
---|
public double getRadius()
public int getDirection()
public void addCentralPoint(PointOnNet centralPoint)
centralPoint
- zero cost pointpublic PointOnNet[] getCentralPoints()
public void removeCentralPoint(PointOnNet centralPoint)
centralPoint
- central point to be removedpublic void addLinkIntervals(NetworkBuffer.LinkIntervals linkIntervals, double[] forwardLinkCosts, double[] backwardLinkCosts)
linkIntervals
- intervals of a linkforwardLinkCosts
- forward link costsbackwardLinkCosts
- backward link costspublic double[] getCosts(PointOnNet point)
point
-public NetworkBuffer.DoubleInterval[] getLinkIntervalCosts(long linkId, NetworkBuffer.DoubleInterval interval)
interval
- start/end percentage on the linkpublic void addNode(LogicalNode node, double[] costs)
node
- nodecosts
- minimum costs to reach the node from a central pointpublic double[] getNodeCosts(long nodeId)
nodeId
- ID of the nodepublic NetworkBuffer.Elements getElements()
public void removeLink(long linkId)
linkId
- ID of the linkpublic void removeNode(long nodeId)
nodeId
- ID of the nodepublic NetworkBuffer subSet(double cost)
cost
- cost of the subset
|
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 |