View Source Retex.Fact.Filter (retex v0.1.12)

Apply a filter to a variable on the PNode, so that the activation of a PNode happens when this condition is also satisfied

Link to this section Summary

Link to this section Types

@type fields() :: [variable: variable(), predicate: predicate(), value: value()]
@type predicate() :: :== | :=== | :!== | :!= | :> | :< | :<= | :>= | :in
@type t() :: %Retex.Fact.Filter{
  predicate: predicate(),
  value: value(),
  variable: variable()
}
@type value() :: any()
@type variable() :: String.t()

Link to this section Functions

@spec new(fields()) :: t()