Class NetworkAnalyst3DImpl
- java.lang.Object
-
- com.supermap.services.components.impl.NetworkAnalyst3DImpl
-
- All Implemented Interfaces:
- ComponentContextAware, NetworkAnalyst3D, Disposable
public class NetworkAnalyst3DImpl extends java.lang.Object implements NetworkAnalyst3D, ComponentContextAware, Disposable
-
-
Constructor Summary
Constructors Constructor and Description NetworkAnalyst3DImpl()
-
Method Summary
Methods Modifier and Type Method and Description voiddispose()Release the resource object.FacilityAnalyst3DResultfindCriticalFacilitiesUpFromEdge(java.lang.String networkDataName, int[] sourceNodeIDs, int edgeID, FacilityAnalystParameter parameter)Upstream key facility lookup, that is, find the key facility nodes in the upstream of a given arc, return the key node ID array and its downstream arc ID array.FacilityAnalyst3DResultfindCriticalFacilitiesUpFromNode(java.lang.String networkDataName, int[] sourceNodeIDs, int nodeID, FacilityAnalystParameter parameter)Upstream key facility lookup, that is, find the key facility nodes in the upstream of a given node, return the key node ID array and its downstream arc ID array.FacilityAnalyst3DResultfindSinkFromEdge(java.lang.String networkDataName, int edgeID, java.lang.String weightName, FacilityAnalystParameter parameter)According to the given arc ID to find the sink, that is, starting from a given arc, find out the downstream sinks that outflow the arc according to the flow, and returns the arc, point and cost which the specified arc reach to the sink the minimum path contains.FacilityAnalyst3DResultfindSinkFromNode(java.lang.String networkDataName, int nodeID, java.lang.String weightName, FacilityAnalystParameter parameter)According to the given node ID to find the sink, that is, from a given node, find out the downstream sinks that outflow the node according to the flow, and returns the arc, point and cost which the specified arc reach to the sink the minimum path contains.FacilityAnalyst3DResultfindSourceFromEdge(java.lang.String networkDataName, int edgeID, java.lang.String weightName, FacilityAnalystParameter parameter)According to the given arc ID to find the source, that is, starting from a given arc, find out the network source that flow to the arc according to the flow, and returns the arc, point and cost which the specified source reach to the specified arc the minimum path contains.FacilityAnalyst3DResultfindSourceFromNode(java.lang.String networkDataName, int nodeID, java.lang.String weightName, FacilityAnalystParameter parameter)According to the given node ID to find the source, that is, from a given node, find the network source that flow to the node according to the flow , and returns the arc, nodes and cost that the source node reach to the specified node the minimum cost path contains .FacilityAnalyst3DContentgetContent(java.lang.String networkDataName)Gets the content information of the network data.java.lang.String[]getNetworkDataNames()Gets the name of all network data used by the 3D Facility Network Analysis component.booleanreloadModel(java.lang.String networkDataName)Reloads the network model.voidsetComponentContext(ComponentContext context)Sets the service component context.FacilityAnalyst3DResulttraceDownFromEdge(java.lang.String networkDataName, int edgeID, java.lang.String weightName, FacilityAnalystParameter parameter)According to the given arc ID for downstream tracking, that is, to find downstream of a given arc, returns the arc, node and total cost which downstream contains.FacilityAnalyst3DResulttraceDownFromNode(java.lang.String networkDataName, int nodeID, java.lang.String weightName, FacilityAnalystParameter parameter)According to the given node ID for downstream tracking, that is, to find downstream of a given arc, returns the arc, node and total cost which downstream contains.FacilityAnalyst3DResulttraceUpFromEdge(java.lang.String networkDataName, int edgeID, java.lang.String weightName, FacilityAnalystParameter parameter)According to the given arc ID for upstream tracking, that is, to find upstream of a given arc, returns the arc, node and total cost which upstream contains.FacilityAnalyst3DResulttraceUpFromNode(java.lang.String networkDataName, int nodeID, java.lang.String weightName, FacilityAnalystParameter parameter)According to the given node ID for upstream tracking, that is, to find upstream of a given arc, returns the arc, node and total cost which upstream contains.
-
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:DisposableRelease the resource object.
- Specified by:
disposein interfaceDisposable
-
setComponentContext
public void setComponentContext(ComponentContext context)
Description copied from interface:ComponentContextAwareSets the service component context.
- Specified by:
setComponentContextin interfaceComponentContextAware- Parameters:
context- The service component context.
-
reloadModel
public boolean reloadModel(java.lang.String networkDataName)
Description copied from interface:NetworkAnalyst3DReloads the network model.
- Specified by:
reloadModelin interfaceNetworkAnalyst3D- Returns:
-
findCriticalFacilitiesUpFromEdge
public FacilityAnalyst3DResult findCriticalFacilitiesUpFromEdge(java.lang.String networkDataName, int[] sourceNodeIDs, int edgeID, FacilityAnalystParameter parameter)
Description copied from interface:NetworkAnalyst3DUpstream key facility lookup, that is, find the key facility nodes in the upstream of a given arc, return the key node ID array and its downstream arc ID array.
- Specified by:
findCriticalFacilitiesUpFromEdgein interfaceNetworkAnalyst3DsourceNodeIDs- Specified facility node ID array can not be empty.edgeID- Specified analysis arc ID.parameter- Three - dimensional facility network analysis general parameters.- Returns:
- Facility network analysis results. Facility network analysis results. Returns null if did not find the key facility node.
-
findCriticalFacilitiesUpFromNode
public FacilityAnalyst3DResult findCriticalFacilitiesUpFromNode(java.lang.String networkDataName, int[] sourceNodeIDs, int nodeID, FacilityAnalystParameter parameter)
Description copied from interface:NetworkAnalyst3DUpstream key facility lookup, that is, find the key facility nodes in the upstream of a given node, return the key node ID array and its downstream arc ID array.
- Specified by:
findCriticalFacilitiesUpFromNodein interfaceNetworkAnalyst3DsourceNodeIDs- Specified facility node ID array can not be empty.nodeID- The specified analysis node ID.parameter- Three - dimensional facility network analysis general parameters.- Returns:
- Facility network analysis results. Facility network analysis results. Returns null if did not find the key facility node.
-
findSinkFromEdge
public FacilityAnalyst3DResult findSinkFromEdge(java.lang.String networkDataName, int edgeID, java.lang.String weightName, FacilityAnalystParameter parameter)
Description copied from interface:NetworkAnalyst3DAccording to the given arc ID to find the sink, that is, starting from a given arc, find out the downstream sinks that outflow the arc according to the flow, and returns the arc, point and cost which the specified arc reach to the sink the minimum path contains.
- Specified by:
findSinkFromEdgein interfaceNetworkAnalyst3DedgeID- Specified analysis arc ID.weightName- For the name of the specified weight field information object, see# name.parameter- Three - dimensional facility network analysis general parameters.- Returns:
- Facility network analysis results.
-
findSinkFromNode
public FacilityAnalyst3DResult findSinkFromNode(java.lang.String networkDataName, int nodeID, java.lang.String weightName, FacilityAnalystParameter parameter)
Description copied from interface:NetworkAnalyst3DAccording to the given node ID to find the sink, that is, from a given node, find out the downstream sinks that outflow the node according to the flow, and returns the arc, point and cost which the specified arc reach to the sink the minimum path contains.
- Specified by:
findSinkFromNodein interfaceNetworkAnalyst3DnodeID- The specified node ID.weightName- For the name of the specified weight field information object, see# name.parameter- Three - dimensional facility network analysis general parameters.- Returns:
- Facility network analysis results.
-
traceUpFromEdge
public FacilityAnalyst3DResult traceUpFromEdge(java.lang.String networkDataName, int edgeID, java.lang.String weightName, FacilityAnalystParameter parameter)
Description copied from interface:NetworkAnalyst3DAccording to the given arc ID for upstream tracking, that is, to find upstream of a given arc, returns the arc, node and total cost which upstream contains.
- Specified by:
traceUpFromEdgein interfaceNetworkAnalyst3DedgeID- Specified arc ID.weightName- For the name of the specified weight field information object, see# name.parameter- Three - dimensional facility network analysis general parameters.- Returns:
- Facility network analysis results.
-
traceUpFromNode
public FacilityAnalyst3DResult traceUpFromNode(java.lang.String networkDataName, int nodeID, java.lang.String weightName, FacilityAnalystParameter parameter)
Description copied from interface:NetworkAnalyst3DAccording to the given node ID for upstream tracking, that is, to find upstream of a given arc, returns the arc, node and total cost which upstream contains.
- Specified by:
traceUpFromNodein interfaceNetworkAnalyst3DnodeID- The specified node ID.weightName- For the name of the specified weight field information object, see# name.parameter- Three - dimensional facility network analysis general parameters.- Returns:
- Facility network analysis results.
-
traceDownFromEdge
public FacilityAnalyst3DResult traceDownFromEdge(java.lang.String networkDataName, int edgeID, java.lang.String weightName, FacilityAnalystParameter parameter)
Description copied from interface:NetworkAnalyst3DAccording to the given arc ID for downstream tracking, that is, to find downstream of a given arc, returns the arc, node and total cost which downstream contains.
- Specified by:
traceDownFromEdgein interfaceNetworkAnalyst3DedgeID- Specified arc ID.weightName- For the name of the specified weight field information object, see# name.parameter- Three - dimensional facility network analysis general parameters.- Returns:
- Facility network analysis results.
-
traceDownFromNode
public FacilityAnalyst3DResult traceDownFromNode(java.lang.String networkDataName, int nodeID, java.lang.String weightName, FacilityAnalystParameter parameter)
Description copied from interface:NetworkAnalyst3DAccording to the given node ID for downstream tracking, that is, to find downstream of a given arc, returns the arc, node and total cost which downstream contains.
- Specified by:
traceDownFromNodein interfaceNetworkAnalyst3DnodeID- The specified node ID.weightName- For the name of the specified weight field information object, see# name.parameter- Three - dimensional facility network analysis general parameters.- Returns:
- Facility network analysis results.
-
findSourceFromEdge
public FacilityAnalyst3DResult findSourceFromEdge(java.lang.String networkDataName, int edgeID, java.lang.String weightName, FacilityAnalystParameter parameter)
Description copied from interface:NetworkAnalyst3DAccording to the given arc ID to find the source, that is, starting from a given arc, find out the network source that flow to the arc according to the flow, and returns the arc, point and cost which the specified source reach to the specified arc the minimum path contains.
- Specified by:
findSourceFromEdgein interfaceNetworkAnalyst3DedgeID- Specified arc ID.weightName- For the name of the specified weight field information object, see# name.parameter- Three - dimensional facility network analysis general parameters.- Returns:
- Facility network analysis results.
-
findSourceFromNode
public FacilityAnalyst3DResult findSourceFromNode(java.lang.String networkDataName, int nodeID, java.lang.String weightName, FacilityAnalystParameter parameter)
Description copied from interface:NetworkAnalyst3DAccording to the given node ID to find the source, that is, from a given node, find the network source that flow to the node according to the flow , and returns the arc, nodes and cost that the source node reach to the specified node the minimum cost path contains .
- Specified by:
findSourceFromNodein interfaceNetworkAnalyst3DnodeID- The specified node ID.weightName- For the name of the specified weight field information object, see# name.parameter- Three - dimensional facility network analysis general parameters.- Returns:
- Facility network analysis results.
-
getNetworkDataNames
public java.lang.String[] getNetworkDataNames()
Description copied from interface:NetworkAnalyst3DGets the name of all network data used by the 3D Facility Network Analysis component.
- Specified by:
getNetworkDataNamesin interfaceNetworkAnalyst3D- Returns:
- Network data name array.
-
getContent
public FacilityAnalyst3DContent getContent(java.lang.String networkDataName)
Description copied from interface:NetworkAnalyst3DGets the content information of the network data.
- Specified by:
getContentin interfaceNetworkAnalyst3D- Returns:
-
-