Interface IDC
access this type via: lang.IDC (provides, requires or uses)
This type represents a loaded component.
Functions
bool wire(char reqIntf[],
IDC com, char proIntf[])
bool hasProvides(char proIntf[])
bool hasRequires(char reqIntf[])
bool isConnected(char reqIntf[])
IDC getComponent(char reqIntf[])
bool pause(char reqIntf[])
bool resume(char reqIntf[])
Object initObject(char reqIntf[])
Data callInterface(
Object o, char typeName[],
Type type, TypeField functionIndex, Data parameters)
bool hasInterface(
Object o, char typeName[],
Type type)
bool hasTransferState(
Object o)
Data getTransferState(
Object o)
bool setTransferState(
Object o, Data d)
bool adoptObject(char reqIntf[],
Object o)
void enableExceptions(bool on)
bool wire(char reqIntf[],
IDC com, char proIntf[])
Wire one of the required interfaces on this component to a provided interface on another component.
Get the list of provided interfaces on this component.
Get the list of required interfaces on this component.
bool hasProvides(char proIntf[])
Check if a given interface is provided by this component.
bool hasRequires(char reqIntf[])
Check if a given interface is required by this component.
bool isConnected(char reqIntf[])
Check if a given required interface is connected to another component (i.e., the dependency is satisfied).
IDC getComponent(char reqIntf[])
Get the component to which a given required interface is connected.
bool pause(char reqIntf[])
Pause a given required interface (used as part of runtime adaptation).
bool resume(char reqIntf[])
Resume a given required interface (used as part of runtime adaptation).
Get the set of objects that have been instantiated over a given required interface (used as part of runtime adaptation).
Object initObject(char reqIntf[])
Create a new object from a given required interface, but do not call its constructor (used as part of runtime adaptation).
Data callInterface(
Object o, char typeName[],
Type type, TypeField functionIndex, Data parameters)
Call a function on a secondary interface of an object. This function checks if the given interface exists on the object, and calls specified function if so. Parameters are passed by creating a Data type in which each field is a parameter. The return value is provided in a data type with a single field of type matching the function's return type.
bool hasInterface(
Object o, char typeName[],
Type type)
Checks if an object has a secondary interface of the given type.
bool hasTransferState(
Object o)
Check if the given object has transfer state.
Data getTransferState(
Object o)
Get the transfer state of the given object. This function also resets the transfer state fields of the given object to default values.
bool setTransferState(
Object o, Data d)
Set the transfer state of the given object.
bool adoptObject(char reqIntf[],
Object o)
Adopt the given object as if instantiated via the given required interface.
void enableExceptions(bool on)
Configure whether or not exceptions generated within this component are printed.