Re: question about component integration or assembly



On Jan 17, 5:52 pm, liongs...@xxxxxxxxx wrote:
On Jan 17, 3:40 am, "H. S. Lahman" <h...@xxxxxxxxxxxxxxxxx> wrote:

or assemblied with other components.

Which component concept is that? B-) Alas, component engineering is
taking on as many different methodological views as OOA/D.

I read about this from Syperski's "Component Software - Beyond Object
Oriented Programming" (2003). To be exact on page 174, He mentioned
and draw a connection between two components C1 and C2.  I can
understand if they will communicate through a defined interface,
however my question was how this connection is implemented?

Let me see if I can clarify your doubts at least in context of CORBA
Components.

Lets suppose if we have two component definitions like below

//component 1
component PowerGenerator {
provides Power power_supplier; //Power is an interface

}

and component 2
component VendingMachine {
provides SomeInterface;//another interface
requires Power power_consumer;
}

Now if we connect power_consumer port of VendingMachine to
power_supplier port of PowerGenerator, the runtime assembly/deployment
framework of infrastructure takes responsibility of getting reference
of power_supplier (of type Power) from PowerGenerator component and
passing this reference to component VendingMachine.

Both the component implements the published behaviour of providing (in
this case providing reference to Power interface by component
PowerGenerator and accepting reference of type Power by component
VendingMachine. And so that we don't need access to source code/
implementation of both/any components.

This is how it gets implemented.

regards,
Shashank Dutt Jha
.



Relevant Pages

  • Re: question about component integration or assembly
    ... publishing refers to the other reference, if that is how it connects .. ... power_supplier port of PowerGenerator, the runtime assembly/deployment ... passing this reference to component VendingMachine. ... PowerGenerator and accepting reference of type Power by component ...
    (comp.object)
  • Re: question about component integration or assembly
    ... Now if we connect power_consumer port of VendingMachine to ... power_supplier port of PowerGenerator, the runtime assembly/deployment ... passing this reference to component VendingMachine. ...
    (comp.object)