Here are a few tutorial examples of CoSi applications.
First a really simple application:
See example implementation in CoSi.
You can also check example implementation in Spring using RMI (Eclipse IDE projet files included).
You can also check example implementation in Osgi using equinox framework (Eclipse IDE projet files included).
Next a more complex thingy. The scenario is as follows: above motorway there is a board announcing how many places are free at our parking lot. Cars, buses and trucks enter and leave the lot via gate, being allowed entry only if there is space for the given type of vehicle on the parking lot – car takes 1 space, bus 2 spaces, truck 4 spaces. Parking lot announces the remaining capacity for the board to display.
The component model has these components, shown also on diagram below:
See images documenting the exercise taken from whiteboard and example implementation in CoSi – all in Czech, sorry.
You can also check example implementation in Spring (Eclipse IDE projet files included).
You can also check example implementation in Osgi using equinox framework and equinoq EventAdmin implementation (Eclipse IDE projet files included).
