|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.UtilityNetwork
public class UtilityNetwork
A container for describing a utility network.
Constructor Summary | |
---|---|
UtilityNetwork(Object obj)
Construct a UtilityNetwork using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
int |
addEdgeByEndEIDs(INetElementDescription edgeDescription,
int fromJunctionEID,
int toJunctionEID)
Adds an edge element to the logical network between the specified junction elements. |
INetElementClass |
addElementClass(int userClassID)
Adds a new element class to the network. |
int |
addJunction(INetElementDescription junctionDescription)
Adds a junction element to the logical network. |
void |
addWeight(INetWeight networkWeight)
Adds a new weight to the network. |
void |
addWeightAssociation(INetWeightAssociation weightSource)
Adds a new weight association to the network. |
void |
analyze(int tableComponents)
Analyze the data to update/generate DBMS statistics. |
boolean |
canCopy()
True if this dataset can be copied. |
boolean |
canDelete()
True if this dataset can be deleted. |
boolean |
canRename()
True if this dataset can be renamed. |
void |
changeSchemaLock(int schemaLock)
Changes a schema lock. |
IDataset |
copy(String copyName,
IWorkspace copyWorkspace)
Copies this dataset to a new dataset with the specified name. |
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. |
void |
delete()
Deletes this dataset. |
void |
deleteByEID(int eID,
int elementType)
Deletes the specified network element from the logical network. |
void |
deleteByEIDs(int elementType,
int elementCount,
int[] elementEIDs)
Deletes the specified network elements from the logical network. |
void |
deleteByID(int userClassID,
int userID,
int userSubID,
int elementType)
Deletes the specified network element from the logical network. |
boolean |
equals(Object o)
Compare this object with another |
void |
establishFlowDirection(int[] sourceEIDs,
int[] sinkEIDs)
Sets the flow direction of all edge elements based on the placement of sources and sinks. |
void |
getAdjacentEdge(int atJunctionEID,
int index,
int[] adjacentEdge,
boolean[] reverseOrientation)
Returns the network element ID of the index'th adjacent edge to the specified junction. |
int |
getAdjacentEdgeCount(int atJunctionEID)
Returns the number of edges adjacent to the specified junction. |
void |
getAdjacentEdges(int atJunctionEID,
int adjacentEdgesCount,
int[] adjacentEdges,
boolean[] reverseOrientation)
Returns the network element IDs of all the edges adjacent to the specified junction. |
int |
getAllowableComponents()
The allowable components to be analyzed. |
void |
getAncillaryRole(int userClassID,
int[] ancillaryRole,
String[] ancillaryRoleFieldName)
Returns the ancillary role type and the name of the field containing the ancillary role information. |
String |
getBrowseName()
The browse name of the dataset. |
String |
getCategory()
The category of the dataset. |
void |
getCurrentSchemaLocks(IEnumSchemaLockInfo[] schemaLockInfo)
The list of current locks. |
boolean |
getDisabledState(int eID,
int elementType)
Returns the disabled state of the specified network element. |
int |
getEdgeCount()
Number of edges in the network. |
int |
getEID(int userClassID,
int userID,
int userSubID,
int elementType)
Returns the network element ID (EID). |
int |
getEIDCount(int userClassID,
int userID,
int elementType)
Returns the number of network element IDs (EIDs) corresponding to the specified user class ID and user ID. |
IEnumNetEID |
getEIDs(int userClassID,
int userID,
int elementType)
Returns the network element IDs (EIDs) corresponding to the specified user classID and user ID. |
INetElementClass |
getElementClass(int index)
Element class by index. |
INetElementClass |
getElementClassByUserID(int elementclassUserID)
Element class corresponding to the specified user class ID. |
int |
getElementClassCount()
Number of element classes in the network. |
String |
getEnabledDisabledFieldName(int userClassID)
Returns the name of the filed containing the enabled/disabled information for the specified user class. |
int |
getFlowDirection(int edgeEID)
Returns the flow direction of the specified edge element. |
void |
getFromToJunctionEIDs(int edgeEID,
int[] fromJunctionEID,
int[] toJunctionEID)
Returns the network element IDs of the junctions adjacent to the specified edge. |
IName |
getFullName()
The associated name object. |
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. |
String |
getName()
The name of the Dataset. |
IPropertySet |
getPropertySet()
The set of properties for the dataset. |
int |
getStatus()
Status of the network. |
IEnumDataset |
getSubsets()
Datasets contained within this dataset. |
int |
getTurnCount()
Number of turns in the network. |
int |
getType()
The type of the Dataset. |
IVersion |
getVersion()
The object's current version. |
INetWeight |
getWeight(int weightInternalID)
Network weight corresponding to the specified weight internal ID. |
IEnumNetWeightAssociation |
getWeightAssociations(int weightInternalID)
Network weight associations corresponding to the specified weight internal ID. |
IEnumNetWeightAssociation |
getWeightAssociationsByTableName(String tableName)
Network weight associations corresponding to the specified table name. |
INetWeight |
getWeightByName(String weightName)
Network weight corresponding to the specified name. |
int |
getWeightCount()
Number of weights in the network. |
Object |
getWeightValue(int eID,
int elementType,
int weightInternalID)
Returns the weight value of the specified network element for the specified weight. |
IWorkspace |
getWorkspace()
The workspace containing this dataset. |
int |
hashCode()
the hashcode for this object |
boolean |
isAttributesBeingUpdated()
Indicates if the attributes of the network are currently being updated. |
boolean |
isBeingEdited()
True if the dataset is being edited. |
boolean |
isCanEdit()
True if the dataset supports edit sessions with the ability to discard edits on save. |
boolean |
isCanRedo()
True if the dataset supports edit sessions with the ability to redo undone operations. |
boolean |
isCanUndo()
True if the dataset supports edit sessions with the ability to undo individual edit operations. |
boolean |
isHasUncompressedEdits()
Indicates if the object has edits that haven't been compressed yet. |
boolean |
isRegisteredAsVersioned()
Indicates if the object is registered as versioned. |
boolean |
isSchemaBeingUpdated()
Indicates if the schema of the network is currently being updated. |
boolean |
isTopologyBeingUpdated()
Indicates if the topology of the network is currently being updated. |
boolean |
isValidElement(int eID,
int elementType)
Returns whether the specified element is part of the network. |
boolean |
isValidFlowDirection()
Indicates if the flow direction is valid for this utility network. |
void |
partialEstablishFlowDirection(int[] sourceEIDs,
int[] sinkEIDs)
Sets the flow direction of all reachable edge elements based on the placement of sources and sinks. |
void |
putAncillaryRole(int userClassID,
int ancillaryRole,
String ancillaryRoleFieldName)
Sets the ancillary role type and the name of the field containing the ancillary role information for the specified user class. |
void |
putEnabledDisabledFieldName(int userClassID,
String enabledDisabledRoleFieldName)
Sets the name of the field containing the enabled/disabled information for the specified user class. |
void |
queryIDs(int eID,
int elementType,
int[] userClassID,
int[] userID,
int[] userSubID)
Returns the user class ID, user ID, and user sub ID for the specified network element. |
void |
registerAsVersioned(boolean isVersioned)
Register/UnRegister the object as being versioned. |
void |
rename(String name)
Renames this Dataset. |
void |
setBrowseName(String name)
The browse name of the dataset. |
void |
setDisabledState(int eID,
int elementType,
boolean disableState)
Sets the disabled state of the specified network element. |
void |
setFlowDirection(int edgeEID,
int flowDirection)
Sets the flow direction for the specified edge element. |
void |
setWeightValue(int eID,
int elementType,
int weightInternalID,
Object weightValue)
Sets the weight value of the specified network element for the specified weight. |
void |
startAttributesUpdating()
Starts a session for updating the attributes of the network. |
void |
startSchemaUpdating()
Starts a session for updating the schema of the network. |
void |
startTopologyUpdating()
Starts a session for updating the topology of the network. |
void |
stopAttributesUpdating()
Ends the session for updating the attributes of the network. |
void |
stopSchemaUpdating()
Ends the session for updating the schema for the network. |
void |
stopTopologyUpdating()
Ends the session for updating the topology of the network. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public UtilityNetwork(Object obj) throws IOException
obj
to UtilityNetwork
. *
UtilityNetwork o = (UtilityNetwork)obj; // will not work
UtilityNetwork o = new UtilityNetwork(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
UtilityNetwork theUtilityNetwork = (UtilityNetwork) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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.
isValidFlowDirection
in interface IUtilityNetworkGEN
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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).
getFlowDirection
in interface IUtilityNetworkGEN
edgeEID
- The edgeEID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
setFlowDirection
in interface IUtilityNetworkGEN
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.public void establishFlowDirection(int[] sourceEIDs, 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.
establishFlowDirection
in interface IUtilityNetworkGEN
sourceEIDs
- The sourceEIDs (in)sinkEIDs
- The sinkEIDs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void partialEstablishFlowDirection(int[] sourceEIDs, int[] sinkEIDs) throws IOException, AutomationException
PartialEstablishFlowDirection will set the flow direction for the 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.
PartialEstablishFlowDirection is very similar to IUtilityNetworkGEN::EstablishFlowDirection. The difference is in those edge elements that cannot be reached from the specified sources and/or sinks. In EstablishFlowDirection, these edges will be set to uninitialized flow. In PartialEstablishFlowDirection, these unreachable edges will retain their original flow direction value.
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.
partialEstablishFlowDirection
in interface IUtilityNetworkGEN
sourceEIDs
- The sourceEIDs (in)sinkEIDs
- The sinkEIDs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getStatus() throws IOException, AutomationException
getStatus
in interface INetwork
IOException
- 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 INetwork
IOException
- 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 INetwork
IOException
- 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 INetwork
IOException
- 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 INetwork
IOException
- 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 INetwork
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 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 INetwork
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[])
public IEnumNetEID createNetBrowser(int elementType) throws IOException, AutomationException
createNetBrowser
in interface INetwork
elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startSchemaUpdating() throws IOException, AutomationException
startSchemaUpdating
in interface INetworkUpdate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stopSchemaUpdating() throws IOException, AutomationException
StopSchemaUpdating is run to close an updating session on the schema that started with StartSchemaUpdating. Do not run this method if you did not begin editing the schema by executing StartSchemaUpdating. Methods in the INetSchemaEdit interface can not be executed once StopSchemaUpdating has been executed.
stopSchemaUpdating
in interface INetworkUpdate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSchemaBeingUpdated() throws IOException, AutomationException
IsSchemaBeingUpdated identifies whether there is an open updating session on the schema. This updating session is necessary to execute the methods in INetSchemaEdit and can be opened by executing the StartSchemaUpdating method.
isSchemaBeingUpdated
in interface INetworkUpdate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startTopologyUpdating() throws IOException, AutomationException
startTopologyUpdating
in interface INetworkUpdate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stopTopologyUpdating() throws IOException, AutomationException
StopTopologyUpdating is run to close an updating session on the topology that started with StartTopologyUpdating. Do not run this method if you did not begin updating the topology by executing StartTopologyUpdating. Methods in the INetTopologyEdit interface can not be executed once StopTopologyUpdating has been executed.
stopTopologyUpdating
in interface INetworkUpdate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTopologyBeingUpdated() throws IOException, AutomationException
IsTopologyBeingUpdated identifies whether there is an open updating session on the topology of a logical network. This updating session is necessary to execute the methods in INetTopologyEdit and can be opened by executing the StartTopologyUpdating method.
isTopologyBeingUpdated
in interface INetworkUpdate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startAttributesUpdating() throws IOException, AutomationException
startAttributesUpdating
in interface INetworkUpdate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stopAttributesUpdating() throws IOException, AutomationException
StopAttributesUpdating is run to close an updating session on the attributes that started with StartAttributesUpdating. Do not run this method if you did not begin updating the attributes by executing StartAttributesUpdating. Methods in the INetAttributesEdit interface can not be executed once StopAttributesUpdating has been executed.
stopAttributesUpdating
in interface INetworkUpdate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAttributesBeingUpdated() throws IOException, AutomationException
IsAttributesBeingUpdated identifies whether there is an open updating session on the attrbiutes of a logical network. This updating session is necessary to execute the methods in INetAttributesEdit and can be opened by executing the StartAttributesUpdating method.
isAttributesBeingUpdated
in interface INetworkUpdate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isValidElement(int eID, int elementType) throws IOException, AutomationException
isValidElement
in interface INetElements
eID
- The eID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getEID(int userClassID, int userID, int userSubID, int elementType) throws IOException, AutomationException
getEID
in interface INetElements
userClassID
- The userClassID (in)userID
- The userID (in)userSubID
- The userSubID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getEIDCount(int userClassID, int userID, int elementType) throws IOException, AutomationException
getEIDCount
in interface INetElements
userClassID
- The userClassID (in)userID
- The userID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumNetEID getEIDs(int userClassID, int userID, int elementType) throws IOException, AutomationException
getEIDs
in interface INetElements
userClassID
- The userClassID (in)userID
- The userID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryIDs(int eID, int elementType, int[] userClassID, int[] userID, int[] userSubID) throws IOException, AutomationException
queryIDs
in interface INetElements
eID
- The eID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)userClassID
- The userClassID (out: use single element array)userID
- The userID (out: use single element array)userSubID
- The userSubID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getElementClassCount() throws IOException, AutomationException
ElementClassCount returns a count of all the NetElementClasses represented in the network. Each NetElementClass corresponds to a single object class.
getElementClassCount
in interface INetSchema
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetElementClass getElementClass(int index) throws IOException, AutomationException
getElementClass
in interface INetSchema
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetElementClass getElementClassByUserID(int elementclassUserID) throws IOException, AutomationException
getElementClassByUserID
in interface INetSchema
elementclassUserID
- The elementclassUserID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getWeightCount() throws IOException, AutomationException
WeightCount returns a count of all of the weights defined for the network.
The weight being a NetWeight object consisting of a name and type of weight. Multiple NetWeightAssociation objects (consisting of field name and table name) are then associated with a particular weight.
getWeightCount
in interface INetSchema
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetWeight getWeight(int weightInternalID) throws IOException, AutomationException
getWeight
in interface INetSchema
weightInternalID
- The weightInternalID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetWeight getWeightByName(String weightName) throws IOException, AutomationException
getWeightByName
in interface INetSchema
weightName
- The weightName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumNetWeightAssociation getWeightAssociations(int weightInternalID) throws IOException, AutomationException
getWeightAssociations
in interface INetSchema
weightInternalID
- The weightInternalID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumNetWeightAssociation getWeightAssociationsByTableName(String tableName) throws IOException, AutomationException
getWeightAssociationsByTableName
in interface INetSchema
tableName
- The tableName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getAncillaryRole(int userClassID, int[] ancillaryRole, String[] ancillaryRoleFieldName) throws IOException, AutomationException
GetAncillaryRole returns the AncillaryRole (0 - no role, 1 - source or sink) and field name for the specified object class. The returned field name is an empty string ("") when the anciallyRole is 0 (no role).
Initialize the output parameters as an esriNetworkClassAncillaryRole (ancillaryRole) and a string (ancillaryRoleFieldName).
getAncillaryRole
in interface INetSchema
userClassID
- The userClassID (in)ancillaryRole
- A com.esri.arcgis.geodatabase.esriNetworkClassAncillaryRole constant (out: use single element array)ancillaryRoleFieldName
- The ancillaryRoleFieldName (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getEnabledDisabledFieldName(int userClassID) throws IOException, AutomationException
GetEnabledDisabledFieldName returns the field name in the specified table used to hold the enabled/disabled value for each feature. The enabled/disabled property indicates whether the feature can be traced through or not. A True value (enabled) means you can trace through the feature, while a False value (disabled) means you cannot.
If the specified UserClassID cannot be found, an empty string is returned.
getEnabledDisabledFieldName
in interface INetSchema
userClassID
- The userClassID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetElementClass addElementClass(int userClassID) throws IOException, AutomationException
AddElementClass adds a new element class to the network. Use this method only to add a new class to a newly created stand-alone logical network that does not have any topology.
addElementClass
in interface INetSchemaEdit
userClassID
- The userClassID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addWeight(INetWeight networkWeight) throws IOException, AutomationException
AddWeight will add a new weight to the network. A weight is used to qualify traces through the features in a network. Add a weight to your network when you want tracing to be based on attributes values of the features in the network.
Only use this method to add a weight to a newly created stand-alone logical network that does not have any topology.
addWeight
in interface INetSchemaEdit
networkWeight
- A reference to a com.esri.arcgis.geodatabase.INetWeight (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addWeightAssociation(INetWeightAssociation weightSource) throws IOException, AutomationException
AddWeightAssocation is used to add a new weight association to a weight already defined on the network. A weight is defined by its name, type, and set of weight associations. The weight associations define the table name and field name that participate in the weight. Multiple table name and field name combinations (weight associations) can participate within a single weight.
Only use this method on newly created stand-alone logical networks that do not have any topology.
addWeightAssociation
in interface INetSchemaEdit
weightSource
- A reference to a com.esri.arcgis.geodatabase.INetWeightAssociation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void putAncillaryRole(int userClassID, int ancillaryRole, String ancillaryRoleFieldName) throws IOException, AutomationException
PutAncillaryRole adds a new ancillary role description to the network. An ancillary role is a source of sink for the network. In order to have sources and sinks in your network, you need to define the user class that will contain the features, and the field name that will specify whether the feature is a source, sink, or neither. PutAncillaryRole applies this definition to the network.
Only use this method on newly created stand-alone logical networks that do not have any topology.
putAncillaryRole
in interface INetSchemaEdit
userClassID
- The userClassID (in)ancillaryRole
- A com.esri.arcgis.geodatabase.esriNetworkClassAncillaryRole constant (in)ancillaryRoleFieldName
- The ancillaryRoleFieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void putEnabledDisabledFieldName(int userClassID, String enabledDisabledRoleFieldName) throws IOException, AutomationException
PutEnabledDisabledFieldName will define the field name within the specified user class to use for tracking whether a feature is enabled or disabled. Enabled or disabled refers to the ability or inability to trace through a feature.
Only use this method on newly created stand-alone logical networks that do not have any topology.
putEnabledDisabledFieldName
in interface INetSchemaEdit
userClassID
- The userClassID (in)enabledDisabledRoleFieldName
- The enabledDisabledRoleFieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getFromToJunctionEIDs(int edgeEID, int[] fromJunctionEID, int[] toJunctionEID) throws IOException, AutomationException
GetFromToJunctionEIDs returns the Element IDs of the start (From) and end (To) junctions of the specified edge element.
getFromToJunctionEIDs
in interface INetTopology
edgeEID
- The edgeEID (in)fromJunctionEID
- The fromJunctionEID (out: use single element array)toJunctionEID
- The toJunctionEID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getAdjacentEdgeCount(int atJunctionEID) throws IOException, AutomationException
GetAdjacentEdgeCount returns the number of edges connect to the specified junction. This property is often used in conjunction with GetAdjacentEdge or GetAdjacentEdges to loop through the edges connected to a junction.
getAdjacentEdgeCount
in interface INetTopology
atJunctionEID
- The atJunctionEID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getAdjacentEdge(int atJunctionEID, int index, int[] adjacentEdge, boolean[] reverseOrientation) throws IOException, AutomationException
getAdjacentEdge
in interface INetTopology
atJunctionEID
- The atJunctionEID (in)index
- The index (in)adjacentEdge
- The adjacentEdge (out: use single element array)reverseOrientation
- The reverseOrientation (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getAdjacentEdges(int atJunctionEID, int adjacentEdgesCount, int[] adjacentEdges, boolean[] reverseOrientation) throws IOException, AutomationException
GetAdjacentEdges returns an array of the edges connected to the specified junction, along with their orientation.
INetTopology::GetAdjacentEdges is marked as
hidden, since its functionality is similar to
IForwardStar::QueryAdjacentEdges(). Clients should use
QueryAdjacentEdges, or even use
IForwardStarGEN::QueryAdjacentEdges, in lieu of using
INetTopology::GetAdjacentEdges.
This method is not callable from Java. Please see INetTopologyEditGEN::GetAdjacentEdges.
getAdjacentEdges
in interface INetTopology
atJunctionEID
- The atJunctionEID (in)adjacentEdgesCount
- The adjacentEdgesCount (in)adjacentEdges
- The adjacentEdges (out: use single element array)reverseOrientation
- The reverseOrientation (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int addJunction(INetElementDescription junctionDescription) throws IOException, AutomationException
The value returned by AddJunction is the Element ID (EID) for the newly created junction. This value is unique.
Unlike edges, a junction can exist in a logical network without attachment to any edges. When a junction exits in this state (once it has been created using this function call), it is not connected to any other portion of the network, but may have edges connected to it so that it will be part of the network.
Only use this method on stand-alone logical networks.
addJunction
in interface INetTopologyEdit
junctionDescription
- A reference to a com.esri.arcgis.geodatabase.INetElementDescription (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int addEdgeByEndEIDs(INetElementDescription edgeDescription, int fromJunctionEID, int toJunctionEID) throws IOException, AutomationException
AddEdgeByEndEIDs adds a new edge between the specified junctions. The value returned by AddEdgeByEndEIDs is the Element ID (EID) for the newly created edge. This value is unique.
Define the parameters of the edge to add in the INetElementDescription object that you pass in.
Only use this method on stand-alone logical networks.
addEdgeByEndEIDs
in interface INetTopologyEdit
edgeDescription
- A reference to a com.esri.arcgis.geodatabase.INetElementDescription (in)fromJunctionEID
- The fromJunctionEID (in)toJunctionEID
- The toJunctionEID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteByID(int userClassID, int userID, int userSubID, int elementType) throws IOException, AutomationException
DeleteByID removes the specified feature from the network. Only use this method to remove elements from stand-alone logical networks.
deleteByID
in interface INetTopologyEdit
userClassID
- The userClassID (in)userID
- The userID (in)userSubID
- The userSubID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteByEID(int eID, int elementType) throws IOException, AutomationException
DeleteByEID removes the specified element from the network. Only use this method on a stand-alone logical network.
deleteByEID
in interface INetTopologyEdit
eID
- The eID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteByEIDs(int elementType, int elementCount, int[] elementEIDs) throws IOException, AutomationException
DeleteByEIDs removes the specified array of elements from the network.
Only use this method on stand-alone logical networks.
This method is not callable from Java. Please use INetTopologyEditGEN::DeleteByEIDs.
deleteByEIDs
in interface INetTopologyEdit
elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)elementCount
- The elementCount (in)elementEIDs
- The elementEIDs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean getDisabledState(int eID, int elementType) throws IOException, AutomationException
getDisabledState
in interface INetAttributes
eID
- The eID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getWeightValue(int eID, int elementType, int weightInternalID) throws IOException, AutomationException
GetWeightValue will return the attribute value for the specified element based on the specified weight.
getWeightValue
in interface INetAttributes
eID
- The eID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)weightInternalID
- The weightInternalID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDisabledState(int eID, int elementType, boolean disableState) throws IOException, AutomationException
Only use this method on stand-alone logical networks. For geometric networks, use IRowBuffer::Value and IRow::Store to modify the value of the feature attribute.
setDisabledState
in interface INetAttributesEdit
eID
- The eID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)disableState
- The disableState (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setWeightValue(int eID, int elementType, int weightInternalID, Object weightValue) throws IOException, AutomationException
SetWeightValue will update the attribute value defined by the specified weight for the specified element. Use this method when you want to change the attribute setting a weight will use during tracing routines.
Only use this method on stand-alone logical networks. For geometric networks, use IRowBuffer::Value and IRow::Store to modify the value of the feature attribute.
setWeightValue
in interface INetAttributesEdit
eID
- The eID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)weightInternalID
- The weightInternalID (in)weightValue
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
getName
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName getFullName() throws IOException, AutomationException
getFullName
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getBrowseName() throws IOException, AutomationException
getBrowseName
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBrowseName(String name) throws IOException, AutomationException
setBrowseName
in interface IDataset
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getType() throws IOException, AutomationException
// Assume we have a reference to an IfeatureClass (pFeatureClass) IDataset pDataset = null;
pDataset = new IDatasetProxy(pFeatureClass);
System.out.println(pDataset.getName() + " " + pDataset.getType());
if(pFeatureClass != null){
pDataset = pFeatureClass.getFeatureDataset();
System.out.println(pDataset.getName() + " " + pDataset.getType());
}
pDataset = new IDatasetProxy(pDataset.getWorkspace());
System.out.println(pDataset.getName() + " " +
pDataset.getType());
getType
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCategory() throws IOException, AutomationException
IDataset::Category returns a description of the category of the dataset. The description returned from the Category property is the same value that is displayed in the Type column within the Contents tab in ArcCatalog. The value will contain a description of the dataset such as "Topology" prefixed with a description of the type of workspace containing the dataset such as "File Geodatabase".
The description returned from IDataset::Category may change between releases of ArcGIS. In addition to this, returned strings are localized, meaning that code relying on a specific string being provided may fail when deployed with a different version of ArcGIS than it was developed with, or when deployed to a client using a different language than it was developed with.
getCategory
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumDataset getSubsets() throws IOException, AutomationException
The Subsets property returns other Dataset objects contained in this dataset.
IDataset::Subsets is not supported for Graph objects such as a Geometric Network. To return the feature classes contained in a Geometric Network, use the IFeatureClassContainer interface.
getSubsets
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspace getWorkspace() throws IOException, AutomationException
The Workspace property returns the containing workspace for this dataset.
getWorkspace
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getPropertySet() throws IOException, AutomationException
The PropertySet property is used to return any additional intrinsic properties (but not metadata properties) that may apply to the dataset. One use of this property is to distinguish between the types of File Geodatabase datafile formats. If called on a Feature Class or Table in a File Geodatabase the Datafile Format property can either be esriFGDBStandardDatafile or esriFGDBCompressedDatafile.
Most datasets do not implement this property and will either raise an error or return a null value if it's called. There are a handful of exceptions that will return property sets; these include the datasets from file geodatabases (as mentioned above) and coverages.
Examples of intrinsic properties for which explicit methods exist include the SpatialReference and the Extent methods available on the IGeoDataset interface. In most cases this PropertySet will be empty.
IDataset::PropertySet is not supported for Graph objects such as a Geometric Network.
getPropertySet
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canCopy() throws IOException, AutomationException
The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods. For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class. To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.
The CanCopy method is supported by:
canCopy
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDataset copy(String copyName, IWorkspace copyWorkspace) throws IOException, AutomationException
IDataset::Copy should only be used with datasets from file-based data sources, such as shapefiles and coverages.
copy
in interface IDataset
copyName
- The copyName (in)copyWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canDelete() throws IOException, AutomationException
The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods. For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class. To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.
canDelete
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delete() throws IOException, AutomationException
Certain feature classes, such as network and topology feature classes, cannot be deleted until their containing objects are deleted.
delete
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canRename() throws IOException, AutomationException
The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods. For example, you may not delete or rename a network feature class nor can you use the Copy method on a Geodatabase feature class. To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.
canRename
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void rename(String name) throws IOException, AutomationException
IDataset::Rename does not support the renaming of Graph objects such as a Geometric Network. In addition, certain feature classes, such as network feature classes, cannot be renamed.
rename
in interface IDataset
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isBeingEdited() throws IOException, AutomationException
Once an edit session has been started on a workspace, the IsBeingEdited method on the IDatasetEdit interface can be used to determine if a particular dataset is participating in the edit session.
The reasons why a dataset may not participate include the connected user has no privileges or permission to edit the dataset, the connected user is not licensed to edit this type of dataset, or the dataset is not versioned but a versioned edit session has been started (or vice versa).
isBeingEdited
in interface IDatasetEdit
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanEdit() throws IOException, AutomationException
This property is to be used within an active edit session, results cannot be guaranteed if called on a dataset outside of an edit session.
isCanEdit
in interface IDatasetEditInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanUndo() throws IOException, AutomationException
isCanUndo
in interface IDatasetEditInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanRedo() throws IOException, AutomationException
isCanRedo
in interface IDatasetEditInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void changeSchemaLock(int schemaLock) throws IOException, AutomationException
changeSchemaLock
in interface ISchemaLock
schemaLock
- A com.esri.arcgis.geodatabase.esriSchemaLock constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getCurrentSchemaLocks(IEnumSchemaLockInfo[] schemaLockInfo) throws IOException, AutomationException
The ISchemaLockInfo interface is used in concert with ISchemaLock to provide information about a schema lock, for example, whether it is shared or exclusive and for ArcSDE geodatabases, the name of the user who has the lock. Note that there will always be at least one schema lock on the dataset. Also note that by checking the schema locks on a dataset a shared schema lock is applied to the data.
getCurrentSchemaLocks
in interface ISchemaLock
schemaLockInfo
- A reference to a com.esri.arcgis.geodatabase.IEnumSchemaLockInfo (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasUncompressedEdits() throws IOException, AutomationException
The HasUncompressedEdits method returns a boolean value that represents if the dataset contains versioned edits that have not been compressed to the base state.
Knowing if the dataset contains any edits is important prior to unregistering the dataset as versioned.
isHasUncompressedEdits
in interface IVersionedObject2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IVersion getVersion() throws IOException, AutomationException
The Version method returns an IVersion object that is the current version the object references. This provides a mechanism to easily detect the version of the database that an object references.
getVersion
in interface IVersionedObject
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isRegisteredAsVersioned() throws IOException, AutomationException
Returns if the underlying dataset is registered as versioned. This only applies to datasets that exist in versioned workspaces.
isRegisteredAsVersioned
in interface IVersionedObject
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void registerAsVersioned(boolean isVersioned) throws IOException, AutomationException
The RegisterAsVersioned method registers or unregisters datasets. Feature classes that participate in feature datasets can be registered or unregistered, although it is highly recomended that the operation be performed on the entire feature dataset. The method requires a boolean argument, true to register or false to unregister the object.
Unregistering an object class as versioned permanently drops the object's delta tables. To preserve the edits, perform a compress prior to unregistering as versioned. See IVersionedWorkspace.Compress and IVersionedObject2 for additional information.
Only the owner can register or unregister the object.
By programmatically registering a class participating in a geometric network as versioned it does not guarantee the entire geometric network including other participating classes will also be registered. It is then recommended the registration take place at the feature dataset level rather than on the individual feature class. This workflow is exposed by default through the user interface in ArcCatalog. If there is a need to register individual classes as versioned within a feature dataset without registering the entire dataset it is crucial the every class participating in a geometric network, including the geometric network itself, is explicitly registered individually.
Archiving must first be disabaled on a class before it can be unregistered as versioned. This situation only applies to classes that have been registered as versioned with the MoveEditsToBase option set to false through the IVersionObject3.RegisterAsVersioned3 method.
registerAsVersioned
in interface IVersionedObject
isVersioned
- The isVersioned (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void analyze(int tableComponents) throws IOException, AutomationException
When applied to a feature dataset, Analyze updates the statistics for all of the tables.
analyze
in interface IDatasetAnalyze
tableComponents
- The tableComponents (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getAllowableComponents() throws IOException, AutomationException
The AllowableComponents property indicates which parts of the table or feature class can be analyzed. The returned value is based on the esriTableComponents enumeration. Members from this enumeration can be bitwise or’d together.
getAllowableComponents
in interface IDatasetAnalyze
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 |