File size: 1,263 Bytes
5070096 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
standard library package Constraints {
doc
/*
* This package defines the base types for constraints and related elements in the
* SysML language.
*/
private import Performances::BooleanEvaluation;
private import Performances::booleanEvaluations;
private import Performances::trueEvaluations;
private import Performances::falseEvaluations;
abstract constraint def ConstraintCheck :> BooleanEvaluation {
doc
/*
* ConstraintCheck is the most general class for constraint checking. ConstraintCheck is the base
* type of all ConstraintDefinitions.
*/
ref constraint self: ConstraintCheck :>> BooleanEvaluation::self;
}
abstract constraint constraintChecks: ConstraintCheck[0..*] nonunique :> booleanEvaluations {
doc
/*
* constraintChecks is the base feature of all ConstraintUsages.
*/
}
abstract constraint assertedConstraintChecks :> constraintChecks, trueEvaluations {
doc
/*
* assertedConstraintChecks is the subset of constraintChecks for ConstraintChecks asserted to be true.
*/
}
abstract constraint negatedConstraintChecks :> constraintChecks, falseEvaluations {
doc
/*
* negatedConstraintChecks is the subset of constraintChecks for ConstraintChecks asserted to be false.
*/
}
} |