Consequent
Consequent
¶
Proposition set that represents and evaluates the consequent of a rule.
structure
The structure of a rule is:
if (antecedent) then (consequent)
The structure of the consequent of a rule is:
then variable is [hedge]* term [and variable is [hedge]* term]* [with w]?
*
-marked elements may appear zero or more times,
elements in brackets are optional,
elements in parentheses are compulsory, and
?
-marked elements may appear once or not at all.
Attributes¶
Functions¶
__repr__
¶
__repr__() -> str
Return the code to construct the consequent in Python.
Returns:
Type | Description |
---|---|
str
|
code to construct the consequent in Python. |
load
¶
load(engine: Engine) -> None
Load the consequent using the engine to identify and get references to the input and output variables.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
engine |
Engine
|
engine to get references in the consequent. |
required |