Class s7sdk.model.ModifierConstraint
Constructor Attributes | Constructor Name and Description |
---|---|
s7sdk.model.ModifierConstraint(constraint, type)
|
Method Attributes | Method Name and Description |
---|---|
<static> |
s7sdk.model.ModifierConstraint.checkRangeSets(rangeSets, modifier)
Returns true if any of the specified range sets trigger a match
given the current modifier value.
|
<static> |
s7sdk.model.ModifierConstraint.getRangeSets(ranges)
'ranges' can be specified in descriptor object as a single parameter
set array, or an array of parameter set arrays.
|
verify(modifier)
Returns a boolean that is true if the constraint has been triggered
|
Method Detail
<static>
s7sdk.model.ModifierConstraint.checkRangeSets(rangeSets, modifier)
Returns true if any of the specified range sets trigger a match
given the current modifier value. If they match, the condition
has been fufilled.
- Parameters:
- rangeSets
- modifier
<static>
s7sdk.model.ModifierConstraint.getRangeSets(ranges)
'ranges' can be specified in descriptor object as a single parameter
set array, or an array of parameter set arrays. This helper function
takes all ranges inputs and returns them as an array of arrays.
- Parameters:
- ranges
verify(modifier)
Returns a boolean that is true if the constraint has been triggered
- Parameters:
- modifier