Skip to content

Highest

Highest

Bases: Activation

Activation method that activates only the rules with the highest activation degrees in descending order.

related

Attributes

rules instance-attribute

rules = rules

Functions

__init__

__init__(rules: int = 1) -> None

Constructor.

Parameters:

Name Type Description Default
rules int

number of rules to activate.

1

activate

activate(rule_block: RuleBlock) -> None

Activate the rules with the highest activation degrees.

Parameters:

Name Type Description Default
rule_block RuleBlock

rule block to activate.

required

configure

configure(parameters: str) -> None

Configure the activation method with the parameters.

Parameters:

Name Type Description Default
parameters str

number of rules (eg, 3).

required

parameters

parameters() -> str

Return the number of rules.

Returns:

Type Description
str

number of rules.