API-icon.png

Unknown macro: floating-toc

Components in jBEAM

jBEAM consists of three different components: producer, consumer, and worker components. Producers create result objects without consuming data or created data objects. Consumer components use data objects but produce none. Worker components are the most complex constituents due to the fact that they produce as well as consume various objects. The Cea2Bus stores references of these objects.

The Cea2Bus stores references of these objects.
jBEAM_components.png

For instance, an import is a producer, a calculation is a worker and a graphic is a consumer.

Create Components

There are two different ways to create a component. First, create a component by the componentID

import com.AMS.jBEAM.*;
int type = jbComponentIF.EXCEL_FILE_EXPORT;
boolean showDialog = false;
// the editor of the component is not displayed
try {
 FileExport_Excel comp = (FileExport_Excel) jC.newComponent(type, showDialog);
} catch (ComponentException compExc) {
 compExc.printStackTrace();
} 

Second, the creation is realized by means of the component description.

import com.AMS.jBEAM.*;
int excelType = jbComponentIF.EXCEL_FILE_EXPORT;
jbComponentDescriptionIF cd = jC.getComponentDescription(excelType);
if (cd.isResolved()){
try {
  FileExport_Excel comp = (FileExport_Excel)jC.newComponent(cd);
} catch (ComponentException compExc) {
  compExc.printStackTrace();
}
}

Delete Components

Deletes a component by name:
jC.deleteComponentByName( componentName);

See also


Copyright by Kistler Chemnitz GmbH 2021
XWiki Enterprise 4.4 - Documentation