Documentation
¶
Index ¶
- func AppendIdentifiers(set1 []model.TupleType, set2 []model.TupleType) []model.TupleType
- func ContainedByFirst(first []model.TupleType, second []model.TupleType) bool
- func EqualSets(first []model.TupleType, second []model.TupleType) bool
- func GetIndex(identifiers []model.TupleType, thisIdr model.TupleType) int
- func IntersectionIdentifiers(first []model.TupleType, second []model.TupleType) []model.TupleType
- func OtherTwoAreContainedByFirst(first []model.TupleType, second []model.TupleType, third []model.TupleType) bool
- func SecondMinusFirst(first []model.TupleType, second []model.TupleType) []model.TupleType
- func UnionIdentifiers(first []model.TupleType, second []model.TupleType) []model.TupleType
- type Network
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIdentifiers ¶
AppendIdentifiers ... Append identifiers from set2 to set1
func ContainedByFirst ¶
ContainedByFirst ... true if second is a subset of first
func IntersectionIdentifiers ¶
IntersectionIdentifiers .. intersection of the two sets
func OtherTwoAreContainedByFirst ¶
func OtherTwoAreContainedByFirst(first []model.TupleType, second []model.TupleType, third []model.TupleType) bool
OtherTwoAreContainedByFirst ... true if second and third are part of first
func SecondMinusFirst ¶
SecondMinusFirst ... returns elements in the second that arent in the first
Types ¶
type Network ¶
type Network interface {
AddRule(model.Rule) error
String() string
RemoveRule(string) model.Rule
GetRules() []model.Rule
//changedProps are the properties that changed in a previous action
Assert(ctx context.Context, rs model.RuleSession, tuple model.Tuple, changedProps map[string]bool)
Retract(ctx context.Context, tuple model.Tuple, changedProps map[string]bool)
// contains filtered or unexported methods
}
Network ... the rete network
Click to show internal directories.
Click to hide internal directories.