|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUtilityNetwork
Provides access to members that get and set flow direction in a utility network.
The only elements in a network that can have flow are edge elements. Junction elements do not have flow.
Flow is maintained in the logical network and not the geometric network. Unlike creating flags, which is done on a feature in the geometric network, changing flow direction on individual elements requires that you directly manipulate the logical network.
This operation requires that you make the network editable. You can do this either through an edit session, using the Editor, or you can use the IWorkspaceEdit interface to edit the workspace of the logical network.
INetworkUpdate
,
IForwardStar
,
IGraph
,
INetworkClass.getNetworkAncillaryRole()
,
INetworkWorkspace
,
INetworkClass.getGeometricNetwork()
,
INetworkClass.getFieldToWeightMapping(int)
,
IUtilityNetwork
,
Not all members are callable from Java. Please use IUtilityNetworkGEN instead.
Method Summary | |
---|---|
void |
establishFlowDirection(int sourceCount,
int[] sourceEIDs,
int sinkCount,
int[] sinkEIDs)
Sets the flow direction of all edge elements based on the placement of sources and sinks. |
int |
getFlowDirection(int edgeEID)
Returns the flow direction of the specified edge element. |
boolean |
isValidFlowDirection()
Indicates if the flow direction is valid for this utility network. |
void |
setFlowDirection(int edgeEID,
int flowDirection)
Sets the flow direction for the specified edge element. |
Methods inherited from interface com.esri.arcgis.geodatabase.INetwork |
---|
createForwardStar, createNetBrowser, getEdgeCount, getJunctionCount, getMaxDegree, getMaxTurn, getStatus, getTurnCount |
Method Detail |
---|
boolean isValidFlowDirection() throws IOException, AutomationException
ValidFlowDirection specifies whether the logical network has flow direction defined on it. Use EstablishFlowDirection on this same interface to set the flow direction.
In this release, ValidFlowDirection is not implemented -- for now, this property always returns False.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getFlowDirection(int edgeEID) throws IOException, AutomationException
GetFlowDirection returns the flow direction for the specified edge element. Possible flow directions are (with and against values are in relation to the digitized direction of the element):
edgeEID
- The edgeEID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFlowDirection(int edgeEID, int flowDirection) throws IOException, AutomationException
SetFlowDirection will set the flow direction for the specified edge element. Flow direction can be set to one of these possible values:
This operation requires that you make the network editable. You can do this either through an edit session, using the Editor, or you can use the IWorkspaceEdit interface to edit the workspace of the logical network.
edgeEID
- The edgeEID (in)flowDirection
- A com.esri.arcgis.geodatabase.esriFlowDirection constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void establishFlowDirection(int sourceCount, int[] sourceEIDs, int sinkCount, int[] sinkEIDs) throws IOException, AutomationException
EstablishFlowDirection will set the flow direction for the entire network based on the input sources (starting points) and/or sinks (collection points). In the majority of cases your network will have either sources or sinks, but not both. Having both sources and sinks in your network will often lead to indeterminate flow on the edge elements. Any edge elements that cannot be reached from the specified sources and/or sinks will have uninitialized flow.
The flow direction established on the edges will be based on these possible values:
esriFDAgainstFlow
esriFDIndeterminate
esriFDUninitialized
esriFDWithFlow
This operation requires that you make the network editable. You can do this either through an edit session, using the Editor, or you can use the IWorkspaceEdit interface to edit the workspace of the logical network.
This method is not callable from Java. Please use IUtilityNetworkGEN::EstablishFlowDirection.
sourceCount
- The sourceCount (in)sourceEIDs
- The sourceEIDs (in)sinkCount
- The sinkCount (in)sinkEIDs
- The sinkEIDs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |