An Empty Component in Ccaffeine (OPTIONAL READING)

Although the component you've created can't actually do anything useful at this point, it is a valid component. You can build it and instantiate it in Ccaffeine if you like:

$ make

make[1]: Entering directory `/home/livetau/workshop-acts/cca/WORK/tutorial-src/doc/scratch/cxx/demo'
# =======================================================================
# No SIDL files in external/sidl, skipping build for external
# =======================================================================
# =======================================================================
# No SIDL files in ports/sidl, skipping build for ports
# =======================================================================
# =======================================================================
# Building in components/clients/, languages: cxx
# =======================================================================
 ## Building clients... 
# =======================================================================
# Building in components/, languages: cxx
# =======================================================================
   [s] Building class/component demo.emptyComponent: 
   [s] using Babel to generate cxx implementation code from demo.emptyComponent.sidl... 
   [s] compiling sources... 
   [s] creating class/component library: libdemo.emptyComponent.la ... 
   [s] finished libtooling: components/demo.emptyComponent/libdemo.emptyComponent.la ... 
   [s] building /home/livetau/workshop-acts/cca/WORK/tutorial-src/doc/scratch/cxx/demo/install/share/cca/demo/demo.emptyComponent_depl.xml ... 
   [s] creating Ccaffeine test script (components/tests/instantiation.gen.rc)... 
Build summary:
SUCCESS building demo.emptyComponent
### To test instantiation of successfully built components, run 'make check' ###
################ Finished building everything #################
####### You can run some simple tests with 'make check' #######
make[1]: Leaving directory `/home/livetau/workshop-acts/cca/WORK/tutorial-src/doc/scratch/cxx/demo'

(Your output should be substantially similar, but will at least have different paths.)

Now, you can run Ccaffeine and the GUI following the same procedure you used in Section 2.1. If you instantiate the emptyComponent , you should see something similar to Figure 3.1. Of course it lacks any uses or provides ports and thus cannot be used for anything, but it is a full-fledged CCA component.

Figure 3.1: GUI showing the emptyComponent generated in Section 3.2 instantiated in the arena .
Image hog-bocca-screen-shot0

2010-08-11