Conditions Applying to Propagation and Representations
You can apply conditions to propagation and representations if you want to filter the Server objects to be represented. These conditions are formulated by expressions that often include view parameters and/or representation status. For example:
view DomainView(boolean useFilter=true):
...
subscribe Node:
represent Tree tree
when (useFilter==false)||(inputCapacity>outputCapacity):
...
propagate inputLines
when (view.useFilter==false)||(inputCapacity>outputCapacity);
propagate outputLines
when (view.useFilter==false)||(inputCapacity>outputCapacity);
The tree representation that is associated with Node will be created only if the view parameter userFilter is set to IlsFalse, or if the value of the inputCapacity data member is greater than the value of outputCapacity.The same condition also applies to the propagation through the inputLines and outputLines relations.
When the same condition applies both to propagation and representation, you can factorize this condition, as follows:
subscribe Node
when (useFilter==false)||(inputCapacity>outputCapacity):
represent Matrix matrix:...;
propagate inputLines;
propagate outputLines;
Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.