|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geodatabase.INetworkForwardStarAdjacenciesProxy
public class INetworkForwardStarAdjacenciesProxy
Provides access to members that specify the adjacent network elements returned by the NetworkForwardStar object.
Use the INetworkForwardStarAdjacencies interface to query network elements returned by the INetworkForwardStar::QueryAdjacencies method.
The NetworkForwardStarAdjacencies object is created by calling the INetworkQuery::CreateForwardStarAdjacencies method.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
INetworkForwardStarAdjacenciesProxy()
|
|
INetworkForwardStarAdjacenciesProxy(Object obj)
|
protected |
INetworkForwardStarAdjacenciesProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
int |
getCount()
Number of adjacent edges returned by the NetworkForwardStar object. |
boolean |
isHasTurn(int index)
Indicates if the adjacent edge at the specified index has a turn. |
boolean |
isHasTurnRestriction()
Indicates if any of the adjacent edges are restricted due to a turn restriction. |
void |
queryAtJunction(INetworkJunction junction)
Queries the junction element used as the atJunction in the NetworkForwardStar object. |
void |
queryEdge(int index,
INetworkEdge adjacentEdge,
double[] fromPosition,
double[] toPosition)
Queries the adjacent edge element at the specified index. |
void |
queryToJunction(int index,
INetworkJunction adjacentJunction,
boolean[] isFiltered)
For the adjacent edge element at the specified index, queries the junction element opposite of the atJunction. |
void |
queryTurn(int index,
INetworkTurn adjacentTurn)
Queries the turn element that passes through the fromEdge, the atJunction, and the adjacent edge at the specified index. |
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 INetworkForwardStarAdjacenciesProxy()
public INetworkForwardStarAdjacenciesProxy(Object obj) throws IOException
IOException
protected INetworkForwardStarAdjacenciesProxy(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.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public int getCount() throws IOException, AutomationException
The Count is the number of adjacent edge elements returned by INetworkForwardStar::QueryAdjacencies. Use this value to iterate over the adjacent elements.
getCount
in interface INetworkForwardStarAdjacencies
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryAtJunction(INetworkJunction junction) throws IOException, AutomationException
The QueryAtJunction method retrieves the junction element used by the INetworkForwardStar::QueryAdjacencies method.
The QueryAtJunction method requires an instantiated NetworkJunction object to be passed in as a parameter. You can create an empty NetworkJunction object by using the INetworkQuery::CreateNetworkElement method.
queryAtJunction
in interface INetworkForwardStarAdjacencies
junction
- A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryEdge(int index, INetworkEdge adjacentEdge, double[] fromPosition, double[] toPosition) throws IOException, AutomationException
The QueryEdge method returns the edge element that is adjacent to the atJunction at the specified index.
The index values range from 0 to (Count - 1).
The QueryEdge method requires an instantiated NetworkEdge object to be passed in as a parameter. You can create an empty NetworkEdge object by using the INetworkQuery::CreateNetworkElement method.
The fromPosition and toPosition parameters indicate the range of accessible positions (starting from the atJunction) along the network edge element that was queried. The position values can range from 0.0 to 1.0, where 0.0 is at the starting end of the edge element and 1.0 is at the terminating end of the edge element. The fromPosition value will always be less than or equal to the toPosition value, regardless of the Direction property of the edge element. In most cases, the entire edge element will be accessible, so the fromPosition parameter will be returned as 0.0 and the toPosition parameter will be returned as 1.0.
In the case when only a portion of the edge element is accessible, this means the edge has been partially restricted by a call to the INetworkForwardStarEx::AddEdgeRestriction method.
queryEdge
in interface INetworkForwardStarAdjacencies
index
- The index (in)adjacentEdge
- A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)fromPosition
- The fromPosition (out: use single element array)toPosition
- The toPosition (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryToJunction(int index, INetworkJunction adjacentJunction, boolean[] isFiltered) throws IOException, AutomationException
The QueryToJunction method returns the junction element that is opposite the atJunction via the QueryEdge edge element at the specified index.
The index values range from 0 to (Count - 1).
The QueryToJunction method requires an instantiated NetworkJunction object to be passed in as a parameter. You can create an empty NetworkJunction object by using the INetworkQuery::CreateNetworkElement method.
queryToJunction
in interface INetworkForwardStarAdjacencies
index
- The index (in)adjacentJunction
- A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)isFiltered
- The isFiltered (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryTurn(int index, INetworkTurn adjacentTurn) throws IOException, AutomationException
The QueryTurn method returns the turn element that traverses from the fromEdge through the atJunction to the QueryEdge edge element at the specified index. The QueryTurn method does not always return a turn element -- to determine if a turn element will be returned, call the HasTurn property using the same index value.
The index values range from 0 to (Count - 1).
The QueryTurn method requires an instantiated NetworkTurn object to be passed in as a parameter. You can create an empty NetworkTurn object by using the INetworkQuery::CreateNetworkElement method.
queryTurn
in interface INetworkForwardStarAdjacencies
index
- The index (in)adjacentTurn
- A reference to a com.esri.arcgis.geodatabase.INetworkTurn (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasTurn(int index) throws IOException, AutomationException
isHasTurn
in interface INetworkForwardStarAdjacencies
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasTurnRestriction() throws IOException, AutomationException
The NetworkForwardStarAdjacencies object holds the adjacent network elements that were queried by calling the INetworkForwardStarEx::QueryAdjacencies method.
The HasTurnRestriction property indicates if any of the edges adjacent to the atJunction have not been included in the NetworkForwardStarAdjacencies object due to a turn restriction.
isHasTurnRestriction
in interface INetworkForwardStarAdjacencies
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 |