Module org.evrete.core
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 Details
-
newRule
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
-