Evaluators

org.topcased.modeler.evaluators

0.10.0

This extension point is used to create a extensible evaluator framework. With this framework you can add Java evaluation, OCL evaluation...

<!ELEMENT extension (evaluator+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT evaluator (description?)>

<!ATTLIST evaluator

language CDATA #REQUIRED

id       CDATA #REQUIRED

class    CDATA #REQUIRED>

Defines a new evaluator for the Topcased evaluation framework. An evaluator is used to evaluate a rule (a condition expressed in a known language) on a given Object in a certain context.



<!ELEMENT description (#PCDATA)>

A description of the kind of evaluation.



The evaluation framework includes a simple evaluation based on the OCL evaluation. This example shows you how this evaluator is added to the Topcased evaluation framework :
   

<extension point=

"org.topcased.modeler.evaluators"

>

<evaluator class=

"org.topcased.modeler.evaluator.ocl.OCLEvaluator"

id=

"org.topcased.modeler.oclEvaluator"

language=

"ocl"

>

<description>

Basic OCL evaluation

</description>

</evaluator>

</extension>

An evaluator must implement the interface org.topcased.modeler.evaluator.IEvaluator. The evaluator evaluates an Object in a given context and a rule.

None