Skip to main content

Alignment calculator

This component computes the alignment of a set of norms NN with respect to the value vv it has been initialized with. It calculates this alignment following the formalization in Eq. using Monte Carlo sampling. It simulates a set of paths for the model under examination to extract their respective outcomes (i.e. their final states), evaluates them with the value semantics function and averages the results. Mathematically:

AlgnN,v=sfiSffv(sfi)Sf \mathsf{Algn}_{N,v} = \frac{\sum\limits_{\mathbf{s}_f^i \in \mathbf{S}_f} f_v(\mathbf{s}_f^i) }{|\mathbf{S}_f|}

An Alignment Calculator is initialized by providing (i) a representation of the model or system being examined (i.e. the entity upon which norms apply to), and (ii) the semantics function fvf_v of the value of interest vv whose alignment is computed by the component.

The alignment calculator component