|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| 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 |
public int getStatus()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getJunctionCount()
throws java.io.IOException,
AutomationException
JunctionCount returns a count of all the junctions in the network.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getEdgeCount()
throws java.io.IOException,
AutomationException
EdgeCount returns a count of all the edges within the network.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTurnCount()
throws java.io.IOException,
AutomationException
TurnCount returns a count of all the turns within a StreetNetwork. For a UtilityNetwork, TurnCount will return 0.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMaxDegree()
throws java.io.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.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMaxTurn()
throws java.io.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.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IForwardStar createForwardStar(boolean honorState,
INetWeight junctionWeight,
INetWeight fromToEdgeWeight,
INetWeight toFromEdgeWeight,
INetWeight turnWeight)
throws java.io.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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumNetEID createNetBrowser(int elementType)
throws java.io.IOException,
AutomationException
elementType - A com.esri.arcgis.geodatabase.esriElementType constant (in)
java.io.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 | |||||||||