InferenceRule class

A declarative rule used by the InferenceEngine.

Rules follow the pattern: IF conditions THEN action/conclusion.

Constructors

InferenceRule({required String id, required String name, required List<String> conditions, required String conclusion, double weight = 1.0})
const

Properties

conclusion → String
final
conditions → List<String>
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
weight → double
final

Methods

matches(Set<String> activeTokens) → bool
Returns true if all conditions appear in the active context.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited