Package: Advisor.authoring
Superclasses:
Create a Model Advisor constraint to check for supported block parameter values
Instances of Advisor.authoring.PositiveBlockParameterConstraint
class define supported values for a specified block parameter.
constraint = Advisor.authoring.PositiveBlockParameterConstraint
creates an instance of this class.
For a Constant block, these commands specify
that the Value parameter must have values of
2
and 5
.
c1=Advisor.authoring.PositiveBlockParameterConstraint; c1.ID='ID_1'; c1.BlockType='Constant'; c1.ParameterName='Value'; c1.SupportedParameterValues={'[2,5]'}; c1.ValueOperator='eq';
For a Constant block, these commands specify
that the Value parameter must have a value between
1
and 4
.
c1=Advisor.authoring.PositiveBlockParameterConstraint; c1.ID='ID_1'; c1.BlockType='Constant'; c1.ParameterName='Value'; c1.SupportedParameterValues={'1','4'}; c1.ValueOperator='range';
CompositeConstraint
| NegativeBlockParameterConstraint
| NegativeBlockTypeConstraint
| NegativeModelParameterConstraint
| PositiveBlockTypeConstraint
| PositiveModelParameterConstraint