Click or drag to resize
Fleet Class
Print this page
Collection of Unit objects (typically vehicles).
Inheritance Hierarchy
SystemObject
  Telogis.APIFleet

Namespace: Telogis.API
  
  
Syntax
public class Fleet

The Fleet type exposes the following members.

Properties
  NameDescription
Public propertyID
Public propertyName
Public propertyProperties
Top
Fields
  NameDescription
Public fieldID
Unique ID for this fleet
Public fieldName
The name of this fleet
Public fieldProperties
User-configurable properties that may be applied to this fleet
Top
Remarks
Examples
The following example demonstrates how to create a fleet and add units to the fleet.
C#
// create a fleet of electricians and plumbers
long efid = myService.CreateFleet("Electricians", e_props);
long pfid = myService.CreateFleet("Plumbers", p_props);
...
// add the electrician's vans to the electrician fleet
foreach (long elecUnit in allElecUnits)
    myService.AddUnitToFleet(efid, elecUnit);

Alternatively, we could have created a single fleet and added both electricians and plumbers to the fleet. To find the electricians (and not the plumbers) we could use the FindDrivers(String, Property) (or FindUnits(String, Property) ) method.

A fleet will persist until it is removed, using the DeleteFleet(Int64) method.

See Also