module Vehicle {
partial interface Navigator {
- readonly attribute Vehicle vehicle;
+ attribute Vehicle vehicle;
};
[NoInterfaceObject]
interface VehiclePropertyType: Event {
/** /brief time at which the vehicle generated the property
**/
- readonly attribute DOMTimeStamp time;
+ attribute DOMTimeStamp Time;
};
[NoInterfaceObject]
/** code
* MUST return error code.
**/
- readonly attribute unsigned short code;
+ attribute unsigned short code;
/** message
* MUST return error message
**/
- readonly attribute DOMString message;
+ attribute DOMString message;
};
callback VehiclePropertyCallback = void (VehiclePropertyType value);
/** VehicleSpeed
* \brief Must return Vehicle Speed in kilometers per hour.
**/
- readonly attribute unsigned long VehicleSpeed;
+ attribute unsigned long VehicleSpeed;
};
[NoInterfaceObject]
/** EngineSpeed
* \brief Must return Engine Speed in rotations per minute.
**/
- readonly attribute unsigned long EngineSpeed;
+ attribute unsigned long EngineSpeed;
};
[NoInterfaceObject]
/** VehiclePowerMode
* \brief Must return Vehicle Power mode (see VEHICLEPOWERMODE)
**/
- readonly attribute octet VehiclePowerMode;
+ attribute octet VehiclePowerMode;
};
[NoInterfaceObject]
/** X
* \brief Must return acceleration on the "X" axis as 1/1000 G (gravitational force).
**/
- readonly attribute unsigned long X;
+ attribute unsigned long X;
/** Y
* \brief Must return acceleration on the "Y" axis as 1/1000 G (gravitational force).
**/
- readonly attribute unsigned long Y;
+ attribute unsigned long Y;
/** Z
* \brief Must return acceleration on the "Z" axis as 1/1000 G (gravitational force).
**/
- readonly attribute unsigned long Z;
+ attribute unsigned long Z;
};
[NoInterfaceObject]
/** GearPosition
* \brief Must return transmission gear position (see TRANSMISSIONPOSITION)
**/
- readonly attribute octet GearPosition;
+ attribute octet GearPosition;
/** Mode
* \brief Must return transmission Mode (see
**/
- readonly attribute octet Mode;
+ attribute octet Mode;
};
[NoInterfaceObject]
/** Activated
* \brief Must return whether or not the Cruise Control system is active (true) or inactive (false)
**/
- readonly attribute boolean Activated;
+ attribute boolean Activated;
/** Speed
* \brief Must return target Cruise Control speed in kilometers per hour (kph).
**/
- readonly attribute unsigned short Speed;
+ attribute unsigned short Speed;
};
[NoInterfaceObject]
/** Engaged
* \brief Must return Wheel Brake status: Engaged = true, disengaged = false
**/
- readonly attribute boolean Engaged;
+ attribute boolean Engaged;
};
[NoInterfaceObject]
/** Head
* \brief Must return headlight status: on = true, off = false.
**/
- readonly attribute boolean Head;
+ attribute boolean Head;
/** RightTurn
* \brief Must return right turn signal status: on = true, off = false.
**/
- readonly attribute boolean RightTurn;
+ attribute boolean RightTurn;
/** LeftTurn
* \brief Must return left turn signal status: on = true, off = false.
**/
- readonly attribute boolean LeftTurn;
+ attribute boolean LeftTurn;
/** Brake
* \brief Must return brake signal light status: on = true, off = false.
**/
- readonly attribute boolean Brake;
+ attribute boolean Brake;
/** Fog
* \brief Must return fog light status: on = true, off = false.
**/
- readonly attribute boolean Fog;
+ attribute boolean Fog;
/** Hazard
* \brief Must return hazard light status: on = true, off = false.
**/
- readonly attribute boolean Hazard;
+ attribute boolean Hazard;
/** Parking
* \brief Must return parking light status: on = true, off = false.
**/
- readonly attribute boolean Parking;
+ attribute boolean Parking;
/** HighBeam
* \brief Must return high beam status: on = true, off = false.
**/
- readonly attribute boolean HighBeam;
+ attribute boolean HighBeam;
};
[NoInterfaceObject]
/** Passenger
* \brief Must return passenger interior light status: on = true, off = false
**/
- readonly attribute boolean Passenger;
+ attribute boolean Passenger;
/** Driver
* \brief Must return driver interior light status: on = true, off = false
**/
- readonly attribute boolean Driver;
+ attribute boolean Driver;
/** Center
* \brief Must return center interior light status: on = true, off = false
**/
- readonly attribute boolean Center;
+ attribute boolean Center;
};
[NoInterfaceObject]
/** On
* \brief Must return horn status: on = true, off = false
**/
- readonly attribute boolean On;
+ attribute boolean On;
};
[NoInterfaceObject]
/** Level
* \brief Must return fuel level as a percentage of fullness.
**/
- readonly attribute unsigned short Level;
+ attribute unsigned short Level;
/** Range
* \brief Must return estimated fuel range in kilometers.
**/
- readonly attribute unsigned short Range;
+ attribute unsigned short Range;
/** InstantConsumption
* \brief Must return instant fuel consumption in milliliters of fuel per second.
**/
- readonly attribute unsigned short InstantConsumption;
+ attribute unsigned short InstantConsumption;
/** InstantEconomy
* \brief Must return instant fuel 'economy' in kilometers per liter of fuel.
**/
- readonly attribute unsigned short InstantEconomy;
+ attribute unsigned short InstantEconomy;
/** AverageEconomy
* \brief Must return average fuel 'economy' in kilometers per liter of fuel since last reset. Setting this to any value should reset the counter to '0'
/** Remaining
* \brief Must return remaining engine oil as percentage of fullness.
**/
- readonly attribute unsigned short Remaining;
+ attribute unsigned short Remaining;
/** Temperature
* \brief Must return Engine Oil Temperature in Celcius.
**/
- readonly attribute long Temperature;
+ attribute long Temperature;
/** Pressure
* \brief Must return Engine Oil Pressure in kPa.
**/
- readonly attribute unsigned short Pressure;
+ attribute unsigned short Pressure;
};
[NoInterfaceObject]
/** Latitude
* \brief Must return latitude in Deg.Min (-180, +180)
**/
- readonly attribute double Latitude;
+ attribute double Latitude;
/** Longitude
* \brief Must return longitude in Deg.Min (-90, +90)
**/
- readonly attribute double Longitude;
+ attribute double Longitude;
/** Altitude
* \brief Must return altitude in meters above sea-level (0).
**/
- readonly attribute double Altitude;
+ attribute double Altitude;
/** Direction
* \brief Must return direction in Degrees (0-360)
**/
- readonly attribute unsigned short Direction;
+ attribute unsigned short Direction;
};
[NoInterfaceObject]
/** ExteriorBrightness
* \brief Must return the brightness outside the vehicle in lux.
**/
- readonly attribute unsigned long ExteriorBrightness;
+ attribute unsigned long ExteriorBrightness;
};
[NoInterfaceObject]
/** Interior
* \brief Must return the temperature of the interior of the vehicle in celcius.
**/
- readonly attribute signed short Interior;
+ attribute signed short Interior;
/** Exterior
* \brief Must return the temperature of the exterior of the vehicle in celcius.
**/
- readonly attribute signed short Exterior;
+ attribute signed short Exterior;
};
[NoInterfaceObject]
/** RainSensor
* \brief Must return level of rain intensity 0: No Rain - 10: Heaviest Rain.
**/
- readonly attribute unsigned short RainSensor;
+ attribute unsigned short RainSensor;
};
[NoInterfaceObject]
/** WindshieldWiper
* \brief Must return Level of windshield whiper speed (see WIPERSPEED)
**/
- readonly attribute unsigned short WindshieldWiper;
+ attribute unsigned short WindshieldWiper;
};
dictionary DefrostDictionary {
* \brief MUST return World Manufacturer Identifier (WMI)
* WMI is defined by SAE ISO 3780:2009. 3 characters.
**/
- readonly attribute DOMString WMI;
+ attribute DOMString WMI;
/** VIN
* \brief MUST return Vehicle Identification Number (VIN) as defined by ISO 3779. 17 characters.
**/
- readonly attribute DOMString VIN;
+ attribute DOMString VIN;
};
[NoInterfaceObject]
/** Width
* \brief MUST return width of vehicle in mm
**/
- readonly attribute unsigned long Width;
+ attribute unsigned long Width;
/** Height
* \brief MUST return height of vehicle in mm
**/
- readonly attribute unsigned long Height;
+ attribute unsigned long Height;
/** Length
* \brief MUST return length of vehicle in mm
**/
- readonly attribute unsigned long Length;
+ attribute unsigned long Length;
};
[NoInterfaceObject]
/** Type
* \brief MUST return type of fuel. integer 0-4 (see
**/
- readonly attribute unsigned short Type;
+ attribute unsigned short Type;
/** RefuelPosition
* \brief MUST return position of refuling (see
**/
- readonly attribute unsigned short RefuelPosition;
+ attribute unsigned short RefuelPosition;
};
[NoInterfaceObject]
/** Type
* \brief MUST return type of Vehicle. Integer 0-5 (see
**/
- readonly attribute unsigned short Type;
+ attribute unsigned short Type;
};
[NoInterfaceObject]
* Example a common mini-van may have Doors[0] = 2 doors,
* Doors[1] = 1 (side door), Doors[2] = 1 (trunk).
**/
- readonly attribute sequence<unsigned short> DoorsPerRow;
+ attribute sequence<unsigned short> DoorsPerRow;
};
[NoInterfaceObject]
/** TransmissionGearType
* \brief MUST return transmission gear type of either Automatic, Manual or Constant Variable (CV). See
**/
- readonly attribute unsigned short TransmissionGearType;
+ attribute unsigned short TransmissionGearType;
};
[NoInterfaceObject]
/** FrontWheelRadius
* \brief MUST return Radius of Front Wheel(s) in mm.
**/
- readonly attribute unsigned short FrontWheelRadius;
+ attribute unsigned short FrontWheelRadius;
/** RearWheelRadius
* \brief MUST return Radius of Rear Wheel(s) in mm.
**/
- readonly attribute unsigned short RearWheelRadius;
+ attribute unsigned short RearWheelRadius;
/** WheelTrack
* \brief MUST return Wheel Track in mm.
**/
- readonly attribute unsigned long WheelTrack;
+ attribute unsigned long WheelTrack;
/** ABS
* \brief MUST return Antilock Brake System status: on = true, off = false.
**/
- readonly attribute boolean ABS;
+ attribute boolean ABS;
};
[NoInterfaceObject]
/** Odometer
* \brief MUST return Distance traveled in km
**/
- readonly attribute unsigned long Odometer;
+ attribute unsigned long Odometer;
};
[NoInterfaceObject]
/** Transmission
* \brief MUST return Transmission fluid level percentage. 0-100.
**/
- readonly attribute unsigned short Transmission;
+ attribute unsigned short Transmission;
/** Brake
* \brief MUST return Brake fluid level percentage. 0-100.
**/
- readonly attribute unsigned short Brake;
+ attribute unsigned short Brake;
/** Washer
* \brief MUST return Washer fluid level percentage. 0-100.
**/
- readonly attribute unsigned short Washer;
+ attribute unsigned short Washer;
};
[NoInterfaceObject]
/** Voltage
* \brief MUST return battery voltage.
**/
- readonly attribute double Voltage;
+ attribute double Voltage;
/** Current
* \brief MUST return battery current in Amperes
**/
- readonly attribute double Current;
+ attribute double Current;
};
[NoInterfaceObject]
/** LeftFront
* \brief MUST return left front tire pressure in kPa.
**/
- readonly attribute double LeftFront;
+ attribute double LeftFront;
/** RightFront
* \brief MUST return right front tire pressure in kPa.
**/
- readonly attribute double RightFront;
+ attribute double RightFront;
/** LeftRear
* \brief MUST return left rear tire pressure in kPa.
**/
- readonly attribute double LeftRear;
+ attribute double LeftRear;
/** RightRear
* \brief MUST return right rear tire pressure in kPa.
**/
- readonly attribute double RightRear;
+ attribute double RightRear;
};
[NoInterfaceObject]
/** LeftFront
* \brief MUST return left front tire temperature in Celcius.
**/
- readonly attribute double LeftFront;
+ attribute double LeftFront;
/** RightFront
* \brief MUST return right front tire temperature in Celcius.
**/
- readonly attribute double RightFront;
+ attribute double RightFront;
/** LeftRear
* \brief MUST return left rear tire temperature in Celcius.
**/
- readonly attribute double LeftRear;
+ attribute double LeftRear;
/** RightRear
* \brief MUST return right rear tire temperature in Celcius.
**/
- readonly attribute double RightRear;
+ attribute double RightRear;
};
[NoInterfaceObject]
/** SecurityAlert
* \brief MUST return
**/
- readonly attribute boolean SecurityAlert;
+ attribute boolean SecurityAlert;
};
[NoInterfaceObject]
/** ParkingBrake
* must return status of parking brake: Engaged = true, Disengaged = false.
**/
- readonly attribute boolean ParkingBrake;
+ attribute boolean ParkingBrake;
};
[NoInterfaceObject]
/** ParkingLight
* must return status of parking light: Engaged = true, Disengaged = false.
**/
- readonly attribute boolean ParkingLight;
+ attribute boolean ParkingLight;
};
[NoInterfaceObject]
/** HazardLight
* must return status of hazard light: Engaged = true, Disengaged = false.
**/
- readonly attribute boolean HazardLight;
+ attribute boolean HazardLight;
};
[NoInterfaceObject]
/** AntilockBrakingSystem
* \brief MUST return whether Antilock Braking System is Idle (false) or Engaged (true)
**/
- readonly attribute boolean AntilockBrakingSystem;
+ attribute boolean AntilockBrakingSystem;
};
[NoInterfaceObject]
/** TractionControlSystem
* \brief MUST return whether Traction Control System is Off (false) or On (true)
**/
- readonly attribute boolean TractionControlSystem;
+ attribute boolean TractionControlSystem;
};
[NoInterfaceObject]
/** VehicleTopSpeedLimit
* \brief MUST returns top rated speed in km/h. 0 = no limit
**/
- readonly attribute unsigned short VehicleTopSpeedLimit;
+ attribute unsigned short VehicleTopSpeedLimit;
};
[NoInterfaceObject]
/** AirbagStatus
* \brief MUST returns a dictionary of Airbag (byte) and Status (byte) (see
**/
- readonly attribute object AirbagStatus;
+ attribute object AirbagStatus;
};
[NoInterfaceObject]
/** DoorStatus
* \brief MUST returns dictionary of Door (byte) and Status (byte). See
**/
- readonly attribute object DoorStatus;
+ attribute object DoorStatus;
/** DoorLockStatus
* \brief MUST returns dictionary of Door (byte) and Status (bool locked = true, unlocked = false). See
**/
- readonly attribute object DoorLockStatus;
+ attribute object DoorLockStatus;
/** ChildLockStatus
* \brief MUST returns Child lock status of rear doors. active = true, inactive = false.
* Setting this to 'true' will prevent the rear doors from being opened
* from the inside.
**/
- readonly attribute boolean ChildLockStatus;
+ attribute boolean ChildLockStatus;
};
[NoInterfaceObject]
/** SeatBeltStatus
* \brief MUST returns dictionary of Seat Belt (byte, see SEATBELTLOCATION) and Status (bool: Fasten = true, Unfastened = false)
**/
- readonly attribute object SeatBeltStatus;
+ attribute object SeatBeltStatus;
};
[NoInterfaceObject]
/** OccupantStatus
* \brief MUST returns dictionary of Occupant (byte see OCCUPANTLOCATION) and Status (byte, see
**/
- readonly attribute object OccupantStatus;
+ attribute object OccupantStatus;
};
[NoInterfaceObject]
/** ObstacleDistance
* \brief MUST returns dictionary of Distance Sensor (byte, see DISTANCESENSORLOCATION) and distance (double) in m.
**/
- readonly attribute object ObstacleDistance;
+ attribute object ObstacleDistance;
};
};