|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.geodatabase.INetworkProxy
public class INetworkProxy
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,
Serialized Form| Field Summary | |
|---|---|
boolean |
noncastable
|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
| Constructor Summary | |
|---|---|
|
INetworkProxy()
|
|
INetworkProxy(Object obj)
|
protected |
INetworkProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
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. |
void |
removeListener(String iidStr,
Object theListener)
|
| Methods inherited from class com.esri.arcgis.interop.Dispatch |
|---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean noncastable
| Constructor Detail |
|---|
public INetworkProxy()
public INetworkProxy(Object obj)
throws IOException
IOException
protected INetworkProxy(Object obj,
String iid)
throws IOException
IOException| Method Detail |
|---|
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
addListener in class com.esri.arcgis.interop.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public int getStatus()
throws IOException,
AutomationException
getStatus in interface INetworkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getJunctionCount()
throws IOException,
AutomationException
JunctionCount returns a count of all the junctions in the network.
getJunctionCount in interface INetworkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getEdgeCount()
throws IOException,
AutomationException
EdgeCount returns a count of all the edges within the network.
getEdgeCount in interface INetworkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTurnCount()
throws IOException,
AutomationException
TurnCount returns a count of all the turns within a StreetNetwork. For a UtilityNetwork, TurnCount will return 0.
getTurnCount in interface INetworkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
getMaxDegree in interface INetworkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
getMaxTurn in interface INetworkIOException - 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 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.
createForwardStar in interface INetworkhonorState - 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[])
public IEnumNetEID createNetBrowser(int elementType)
throws IOException,
AutomationException
createNetBrowser in interface INetworkelementType - 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 | ||||||||