engine

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grool

type Grool struct {
	MaxCycle uint64
}

Grool is the engine structure. It has the Execute method to start the engine to work.

func NewGroolEngine

func NewGroolEngine() *Grool

NewGroolEngine will create new instance of Grool struct. It will set the max cycle to 5000

func (*Grool) Execute

func (g *Grool) Execute(dataCtx *context.DataContext, knowledge *model.KnowledgeBase) error

Execute function will execute a knowledge evaluation and action against data context. The engine also do conflict resolution of which rule to execute.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL