com.esri.arcgis.networkanalyst
Interface IEnumTrafficSpeeds

All Superinterfaces:
Serializable

public interface IEnumTrafficSpeeds
extends Serializable

Provides access to traffic speed data.

Product Availability

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


Method Summary
 IArray getTimeSlices()
          Array of time slices of speed data.
 Date getTimestamp()
          Timestamp of speed data.
 void next(String[] pKey, IVariantArray[] ppValues)
          Retrieve next record in speed data.
 void reset()
          Reset cursor to beginning.
 

Method Detail

getTimestamp

Date getTimestamp()
                  throws IOException,
                         AutomationException
Timestamp of speed 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.

getTimeSlices

IArray getTimeSlices()
                     throws IOException,
                            AutomationException
Array of time slices of speed data.

Remarks

TimeSlices is an array of objects that implement ITimeSlice. Time slices are used to specify the speeds associated with a given time span.

Product Availability

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

Returns:
A reference to a com.esri.arcgis.system.IArray
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

void next(String[] pKey,
          IVariantArray[] ppValues)
          throws IOException,
                 AutomationException
Retrieve next record in speed data. The values correspond to time slices.

Remarks

The key value should be a TMC entry associated with a given section of road.

The values array is an array of speeds. There should be one speed entry for every time slice in the TimeSlices array property of IEnumTrafficSpeeds. The speeds should be short integers (Int16 in .NET).

Product Availability

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

Parameters:
pKey - The pKey (out: use single element array)
ppValues - A reference to a com.esri.arcgis.system.IVariantArray (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.