BOCL Wrapper#

class bocl.OCLWrapper.OCLWrapper(dm, om)[source]#

Bases: object

The OCLWrapper class is the wrapper around the evaluator class to prepare the construct needed by evaluator.

Parameters:
  • dm – Domain model in BUML

  • om – object model in BUML

dm#

Domain model in BUML

om#

object model in BUML

evaluate(ocl)[source]#

the evaluate function takes the OCL constraint and evaluate using evaluator :param ocl: Object of OCL class that constaints the OCL expression and context class