com.esri.arcgis.networkanalyst
Interface IEnumTrafficIncidents

All Superinterfaces:
Serializable

public interface IEnumTrafficIncidents
extends Serializable

Provides access to incident data.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 IFields getFields()
          Fields in incident data.
 Date getTimestamp()
          Timestamp of incident data.
 IVariantArray next()
          Retrieve next record in incident data.
 void reset()
          Reset cursor to beginning.
 

Method Detail

getTimestamp

Date getTimestamp()
                  throws IOException,
                         AutomationException
Timestamp of incident data.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The pTimestamp
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFields

IFields getFields()
                  throws IOException,
                         AutomationException
Fields in incident data.

Remarks

Fields that represent the schema of the output feature class for traffic incidents. The fields should match those returned by ITrafficProvider.GetIncidentsFeatureClassFields.

The array of values returned by Next should have one entry for each of the fields specified here.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.geodatabase.IFields
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

void reset()
           throws IOException,
                  AutomationException
Reset cursor to beginning.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

next

IVariantArray next()
                   throws IOException,
                          AutomationException
Retrieve next record in incident data. The values correspond to time fields.

Remarks

Next returns the next traffic incident. The values array should hold one incident value for each field in the Fields property of IEnumTrafficIncidents.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.system.IVariantArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.