Lumiera  0.pre.03
»edit your freedom«
AdviceBasics_test Class Reference

Description

Test:
proof-of-concept for the Advice collaboration.

Advice allows data exchange without coupling the participants tightly. This test demonstrates the basic expected behaviour in a simple but typical situation: two unrelated entities exchange a piece of data just by referring to a symbolic topic ID.

See also
advice.hpp
AdviceSituations_test
AdviceMultiplicity_test
AdviceConfiguration_test
AdviceBindingPattern_test
AdviceIndex_test implementation test

Definition at line 113 of file advice-basics-test.cpp.

Private Member Functions

void createCollaboration ()
 
void overwriting_and_retracting ()
 
virtual void run (Arg)
 
void simpleExchange ()
 

Member Function Documentation

◆ simpleExchange()

void simpleExchange ( )
inlineprivate
Test:
the very basic usage situation: the advisor sets an information value and the advised entity picks it up.

Definition at line 128 of file advice-basics-test.cpp.

◆ createCollaboration()

void createCollaboration ( )
inlineprivate
Test:
multiple ways how to initiate the advice collaboration

Definition at line 145 of file advice-basics-test.cpp.

◆ overwriting_and_retracting()

void overwriting_and_retracting ( )
inlineprivate
Test:
changing the provided advice, finally retracting it, causing fallback on the default value.

Any given advisor can connect to the advice system with multiple bindings consecutively. The connection has no identity beside this binding, so another server (advisor) can step into an existing connection and overwrite or retract the advice. Unless retracted, advice remains in the system, even after the advisor is gone.

Definition at line 182 of file advice-basics-test.cpp.

+ Inheritance diagram for AdviceBasics_test:
+ Collaboration diagram for AdviceBasics_test:

The documentation for this class was generated from the following file: