• Please define a set of rules describing how parts should interact

Document Actions
Replies: 1   Views: 3906
Up one level
You need to be a registered member to post to this forum. Register now.
Prev topic | Next topic

 • Please define a set of rules describing how parts should interact

Posted by edwardotis at 2004-11-19 01:24
Please define a set of rules describing how parts should interact
Anonymous
Posts: n/a

 • Re: Please define a set of rules describing how parts should interact

Posted by havoyan at 2004-11-20 17:10
Parts interaction is based on anonymous collaboration principles, so that parts are not aware with whom they are collaborating. Parts are firing events and the framework is taking care to forward the events according to the wires we draw.

Event contains parameters. Events are produced by part outpins and consumed by parts inpins.

Part pins and event parameters are declared via part config files. Config files for atomic parts (parts which are not Devices) are either generated out of comments within part Java file or can be developed manually. Inpins are defined via Java methods, and outpins are fired via firing events to the framework by calling framework listener methods.

When a wire connects 2 parts, which have different produced and consumed event parameters we need to map fired event parameters into expected event parameters.

Parts are composed into devices using device config parts. Device config parts can be developed manually via text editor or visually within Buildap IDE. They cannot be generated as in case of Java parts because they don’t have Java implementation.

Devices are also parts, which can be used by other parts.
Manager
Posts: 0