automotive-message-broker  0.14.803
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Slots | Signals | Public Member Functions | Properties | 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...

#include <bluemonkey.in.idl>

Inheritance diagram for Bluemonkey:

Public Slots

void assertIsTrue (bool isTrue, const QString &msg="")
 
void loadScript (QString str)
 
bool loadModule (QString path)
 
void writeProgram (QString program)
 
void log (QJSValue str)
 
QObject * createTimer ()
 
QObject * createQObject ()
 
QObject * createCoreApplication ()
 
int run (QCoreApplication *app)
 

Signals

void ready ()
 

Public Member Functions

 Bluemonkey (QObject *parent=nullptr)
 
bool loadModule (const QString &name, QObject *module)
 
QStringList arguments ()
 
void setArguments (const QStringList &args)
 
void setArguments (int len, char **args)
 
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
 
PropertyInterface subscribeTo (DOMString propertyName, optional unsigned short zone, optional DOMString source)
 subscribe to a property
 
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 ()
 
QObject createQObject ()
 
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)
 

Properties

QStringList arguments
 

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

QObject Bluemonkey::createQObject ( )

create a QObject

Returns
empty QObject
QTimer Bluemonkey::createTimer ( )

create a QTimer

Returns
QTimer object
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 files: