24 package org.lightjason.agentspeak.language.instantiable.rule;
26 import com.google.common.collect.Multimap;
38 import javax.annotation.Nonnull;
39 import java.util.List;
40 import java.util.stream.Stream;
54 private static final long serialVersionUID = 6850403064097706468L;
80 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
87 public final Stream<IVariable<?>>
variables()
89 return Stream.empty();
IRule replaceplaceholder( @Nonnull final Multimap< IPath, IRule > p_rules)
replaces all placeholder objects and reinstantiate object
IFuzzyValue< Boolean > execute(final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return)
defines a plan-body operation
Stream< IVariable<?> > variables()
returns a stream with all used variables
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
interface for (instantiable) plans and logical-rules
interface of logical rule
execution context with local data
ILiteral identifier()
returns the identifier of the rule
result for an immutable fuzzy value
default generic literal class for agent beliefs a literal consists of a functor, an optional list of ...
IContext EMPTYRULE
empty context with rule
IContext instantiate( @Nonnull final IAgent<?> p_agent, @Nonnull final Stream< IVariable<?>> p_variable)
creates an individual execution context
static ILiteral from( @Nonnull final String p_functor, @Nullable final ITerm... p_values)
factory