HansBug's picture
Sync raw source code, with 301 records, on 2024-08-14 05:51:28 CST
5070096 verified
raw
history blame
1.26 kB
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.
*/
}
}