automotive-message-broker  0.13
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
Bluemonkey Interface Reference

Bluemonkey interface Bluemonkey provides AMB plugin-like interfaces and allows the loading of other modules, timers, and QObject creation. Typical usage is such: More...

import"bluemonkey.idl";

Public Member Functions

PropertyInterface subscribeTo (DOMString propertyName, optional unsigned short zone, optional DOMString source)
 subscribe to a property More...
 
DOMString[] sourcesForProperty (DOMString propertyName)
 return the AMB sources that provide propertyName
 
unsigned short[] zonesForProperty (DOMString propertyName)
 returns the available zones that contians propertyName
 
DOMString[] supportedProperties ()
 return supported properties
 
void loadConfig (DOMString configFile)
 load another script
 
void loadModule (DOMString moduleFile)
 load a bluemonkey module
 
void log (DOMString text)
 log text to AMB output
 
QTimer createTimer ()
 create a QTimer
 
QObject createQObject ()
 create a QObject
 
void getHistory (DOMString[] properties, Date begin, Date end, HistoryCallback callback)
 return logged data between "begin" and "end"
 
void createCustomProperty (DOMString name, any value, optional unsigned short zone)
 creates a custom property
 

Detailed Description

Bluemonkey interface Bluemonkey provides AMB plugin-like interfaces and allows the loading of other modules, timers, and QObject creation. Typical usage is such:

var speedProperty = bluemonkey.subscribeTo("VehicleSpeed");
bluemonkey.log("Current speed: " + speedProperty.value);

Member Function Documentation

PropertyInterface Bluemonkey::subscribeTo ( DOMString  propertyName,
optional unsigned short  zone,
optional DOMString  source 
)

subscribe to a property

Returns
PropertyInterface representing the property

The documentation for this interface was generated from the following file: