Class UtilityElement
- java.lang.Object
- 
- com.esri.arcgisruntime.utilitynetworks.UtilityElement
 
- 
 public final class UtilityElement extends Object Defines a feature in the utility network.- Since:
- 100.6.0
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UtilityAssetGroupgetAssetGroup()Gets the asset group of the feature represented by this utility element.UtilityAssetTypegetAssetType()Gets the asset type of the feature represented by this utility element.doublegetFractionAlongEdge()Gets how far the starting point or barrier is along an edge in the utility network feature.UUIDgetGlobalId()Gets the global ID of the feature represented by this utility element.UtilityNetworkSourcegetNetworkSource()Gets the network source that contains the feature represented by this utility element.longgetObjectId()Gets the object ID of the feature represented by this utility element.UtilityTerminalgetTerminal()Gets theUtilityTerminalof the feature represented by this utility network feature.booleanisValid()Indicates whether or not the UtilityElement has complete data available.voidsetFractionAlongEdge(double fractionAlongEdge)Sets how far the starting point or barrier is along an edge in the utility network feature.voidsetTerminal(UtilityTerminal utilityTerminal)Sets the terminal of the feature represented by this utility element.
 
- 
- 
- 
Method Detail- 
getAssetGrouppublic UtilityAssetGroup getAssetGroup() Gets the asset group of the feature represented by this utility element.- Returns:
- the asset group
- Since:
- 100.6.0
 
 - 
getAssetTypepublic UtilityAssetType getAssetType() Gets the asset type of the feature represented by this utility element.- Returns:
- the asset type
- Since:
- 100.6.0
 
 - 
getGlobalIdpublic UUID getGlobalId() Gets the global ID of the feature represented by this utility element.- Returns:
- the global ID
- Since:
- 100.6.0
 
 - 
getNetworkSourcepublic UtilityNetworkSource getNetworkSource() Gets the network source that contains the feature represented by this utility element.- Returns:
- the network source
- Since:
- 100.6.0
 
 - 
getObjectIdpublic long getObjectId() Gets the object ID of the feature represented by this utility element. Only valid on results from a tracing operation, or with utility elements that are created from aArcGISFeature.- Returns:
- the object ID or -1 if invalid
- Since:
- 100.6.0
 
 - 
getFractionAlongEdgepublic double getFractionAlongEdge() Gets how far the starting point or barrier is along an edge in the utility network feature. Valid values are from 0.0 to 1.0. Only valid when theglobal IDpoints to an edge feature that is an input to a tracing operation.- Returns:
- the fraction along edge value
- Since:
- 100.6.0
 
 - 
getTerminalpublic UtilityTerminal getTerminal() Gets theUtilityTerminalof the feature represented by this utility network feature. Only valid whengetGlobalId()returns a device feature.- Returns:
- the terminal or null if none
- Since:
- 100.6.0
 
 - 
setFractionAlongEdgepublic void setFractionAlongEdge(double fractionAlongEdge) Sets how far the starting point or barrier is along an edge in the utility network feature. Valid values are from 0.0 to 1.0. Only valid when theglobal IDpoints to an edge feature that is an input to a tracing operation.- Parameters:
- fractionAlongEdge- fraction along edge value
- Throws:
- IllegalArgumentException- if fractionAlongEdge is out of range from 0.0 to 1.0
- Since:
- 100.6.0
 
 - 
setTerminalpublic void setTerminal(UtilityTerminal utilityTerminal) Sets the terminal of the feature represented by this utility element.Only valid when the getGlobalId()refers to a device feature.- Parameters:
- utilityTerminal- the utility terminal, or null for none
- Since:
- 100.7.0
 
 - 
isValidpublic boolean isValid() Indicates whether or not the UtilityElement has complete data available.When taking an UtilityNetworkoffline, some of the data can be filtered out to limit the size of the data. This may leave some elements in an incomplete state. For example, one element of an association may be included in the offline dataset while the other element may not.When an element is incomplete, the following properties should not be used: WhenisValid()is false, theUtilityAssetTypeis assumed to have aUtilityAssociationDeletionSemanticsofRESTRICTED.- Returns:
- indicates whether or not the UtilityElement has complete data available
- Since:
- 100.11.0
 
 
- 
 
-