The interpret API reference

Copyright 2020 Simon Vandevelde, Bram Aerts, Joost Vennekens This code is licensed under GNU GPLv3 license (see LICENSE) for more information. This file is part of the cDMN solver.

class interpret.PredicateInterpretation(pred: <sphinx.ext.autodoc.importer._MockObject object at 0x7f38e1d2b750>, arguments, inter: interpret.VariableInterpreter, variables)[source]

TODO

type

Method to get the type of the predicate.

Returns Type:supertrype of the predicate.
value

TODO

class interpret.Value(value: str, valuetype, variables)[source]

An object to represent a value.

check(variables)[source]

TODO

class interpret.VariableInterpreter(glossary: <sphinx.ext.autodoc.importer._MockObject object at 0x7f38e1fb4450>)[source]

TODO

interpret_value(value: str, variables: Dict[KT, VT] = {}, expected_type=None)[source]

Method to interpret a value of a cDMN notation. Here be dragons.

Parameters:
  • value – string which needs to be interpreted.
  • variables – list containing the variables.
  • expected_type
Returns str:

the interpretation of the notation.