I have a problem relating data transmission between ipojo
components during reconfiguration.
Here's an example:
- A component
Calcul_1
provides a calculation service to return a value(a+b)
(ex:f(a,b)=> (a+b)
) - A component
Calcul_2
provides a calculation service to return a value(a*b)
(ex:f(a,b)=> (a*b)
)
These two components implement the same calculation service (ex: f
).
- Now, I have a component
CallCalcul
that uses the calculation service ofCalcul_1
. The componentCallCalcul
callsf(5,6)
in the componentCalcul_1
. Then, theCallCalcul component
receives the value of 11.
Problem:
When
Calcul_1
receives the value(5,6)
(not yet calculate) fromCallCalcul
,CallCalcul
reconfigure by changing connector toCalcul_2
, i.e., it binds toCalcul_2
. In this case, how can I transmit(5,6)
fromCalcul_1
toCalcul_2
and return(5*6=30)
toCallCalcul
?When
Calcul_1
receives the value(5,6)
(and calculate their, i.e. 5+6=11) fromCallCalcul
,CallCalcul
reconfigure. In this case, how can I transmit11
toCalcul_2
and return this value toCallCalcul
?