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: cdmn.glossary.Predicate, arguments, inter: VariableInterpreter, variables)[source]
TODO
- property type
Method to get the type of the predicate.
- Returns Type:
supertrype of the predicate.
- property value
TODO
- class interpret.VariableInterpreter(glossary: cdmn.glossary.Glossary)[source]
TODO
- interpret_value(value: str, variables: Dict = {}, 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.