c.ocl 450 B

12345678910
  1. inv startEndConstraint: self.stopTime > self.startTime
  2. inv nonEmptyDescription: self.description != ""
  3. inv positiveDuration: self.duration > 0
  4. context DriveTrainSetup::duration():Integer post: result = self.stopTime – self.startTime
  5. //context Activity::complete(d:Integer) pre: self.isConfirmed = false
  6. //inv: self.moderator.gender = Gender::female
  7. //inv: self->collect(participants)->size()>=2
  8. //context Meeting inv: self.participants->size()>=2