Package org.evrete.api.builders
Interface RuleSetBuilder<C extends RuntimeContext<C>>
-
- Type Parameters:
C- Represents the type of the RuntimeContext.
public interface RuleSetBuilder<C extends RuntimeContext<C>>`RuleSetBuilder` is an interface intended for building and appending rules to the current runtime context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Cbuild()Builds and appends previously created rules to the current context.RuleBuilder<C>newRule()Creates a new unnamed rule.RuleBuilder<C>newRule(String name)Creates a new rule with the provided name.
-
-
-
Method Detail
-
newRule
RuleBuilder<C> newRule(String name)
Creates a new rule with the provided name.- Parameters:
name- rule name- Returns:
- a new rule builder
-
newRule
RuleBuilder<C> newRule()
Creates a new unnamed rule.- Returns:
- a new rule builder
-
build
C build()
Builds and appends previously created rules to the current context.
- Returns:
- the current context after appending new rules
-
-