|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INetwork
Provides access to members that give general information about the network and its elements.
To obtain a reference to the logical
network of a geometric network you first need to obtain a reference
to the geometric network. An example of this can be found in the
help for IGeometricNetwork.
Once you have a reference to the geometric network you can obtain a
reference to the logical network using the IGeometricNetwork::Network property.
The INetwork interface is on the Network
abstract class, which contains other interfaces for use with
logical networks:
INetworkUpdate - Used for starting
updating sessions in the logical network.
INetElements - Used for getting element ID's
(EID's) and verify valid elements.
INetSchema - Used for getting element classes
and in a logical network.
INetSchemaEdit - Used for editing the schema
of the logical network such as adding weights.
INetAttributes - Used for getting weight
values and enabled/disabled state of elements.
INetAttributesEdit - Used for changing weight
values and disabled/enabling elements.
INetTopology - Used for seeing what elements
are connect to another element.
INetTopologyEdit - Used for adding and
deleting elements from the logical network.
INetworkUpdate
,
IForwardStar
,
IGraph
,
INetworkClass.getNetworkAncillaryRole()
,
INetworkWorkspace
,
INetworkClass.getGeometricNetwork()
,
INetworkClass.getFieldToWeightMapping(int)
,
IUtilityNetwork
,
INetwork
Method Summary | |
---|---|
IForwardStar |
createForwardStar(boolean honorState,
INetWeight junctionWeight,
INetWeight fromToEdgeWeight,
INetWeight toFromEdgeWeight,
INetWeight turnWeight)
Creates a forward star cursor on the network index. |
IEnumNetEID |
createNetBrowser(int elementType)
Creates a network index element browser. |
int |
getEdgeCount()
Number of edges in the network. |
int |
getJunctionCount()
Number of junctions in the network. |
int |
getMaxDegree()
Maximum degree of a junction. |
int |
getMaxTurn()
Maximum number of turns associated with a junction. |
int |
getStatus()
Status of the network. |
int |
getTurnCount()
Number of turns in the network. |
Method Detail |
---|
int getStatus() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getJunctionCount() throws IOException, AutomationException
JunctionCount returns a count of all the junctions in the network.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getEdgeCount() throws IOException, AutomationException
EdgeCount returns a count of all the edges within the network.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTurnCount() throws IOException, AutomationException
TurnCount returns a count of all the turns within a StreetNetwork. For a UtilityNetwork, TurnCount will return 0.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxDegree() throws IOException, AutomationException
The MaxDegree is the maximum number of edges connected to any given junction in the network. This property can be used to determine if there are incorrect connections within the network. For instance, in a Gas Network it is unlikely that there would ever be more than 4 edges attached to a junction. If MaxDegree returned a number greater than 4, it would indicate a problem in the network.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxTurn() throws IOException, AutomationException
MaxTurn returns the maximum number of turns assigned to any given junction within a StreetNetwork. For a UtilityNetwork, MaxTurn will always return 0.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IForwardStar createForwardStar(boolean honorState, INetWeight junctionWeight, INetWeight fromToEdgeWeight, INetWeight toFromEdgeWeight, INetWeight turnWeight) throws IOException, AutomationException
CreateForwardStar generates an IForwardStar object that can be used for stepping through the network. The input parameters for the method are as follows:
HonorState refers to elements in your network that are enabled/disabled. If you set HonorState to True then the ForwardStar will only return elements that are not disabled. If you specify False then any element that is connected to the element you are accessing will return a ForwardStar.
honorState
- The honorState (in)junctionWeight
- A reference to a com.esri.arcgis.geodatabase.INetWeight (in)fromToEdgeWeight
- A reference to a com.esri.arcgis.geodatabase.INetWeight (in)toFromEdgeWeight
- A reference to a com.esri.arcgis.geodatabase.INetWeight (in)turnWeight
- A reference to a com.esri.arcgis.geodatabase.INetWeight (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INetwork.createForwardStar(boolean, com.esri.arcgis.geodatabase.INetWeight, com.esri.arcgis.geodatabase.INetWeight, com.esri.arcgis.geodatabase.INetWeight, com.esri.arcgis.geodatabase.INetWeight)
,
IForwardStar.queryAdjacentEdge(int, int[], boolean[], Object[])
,
IForwardStar.queryAdjacentJunction(int, int[], Object[])
,
IForwardStar.getNetwork()
,
IForwardStar.findAdjacent(int, int, int[])
,
IForwardStar.queryAtTurns(int, int[], Object[])
,
IForwardStar.queryAdjacentEdges(int, int[], boolean[], Object[])
,
IForwardStar.queryAdjacentJunctions(int, int[], Object[])
,
IForwardStar.queryAtTurn(int, int[], Object[])
IEnumNetEID createNetBrowser(int elementType) throws IOException, AutomationException
elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (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 |