24 package org.lightjason.agentspeak.language.instantiable.plan;
35 import javax.annotation.Nonnull;
36 import java.util.List;
37 import java.util.stream.Stream;
53 private static final long serialVersionUID = -8137749419571919583L;
79 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
86 public final Stream<IVariable<?>>
variables()
88 return Stream.empty();
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
IContext EMPTYPLAN
empty context with plan
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
interface for (instantiable) plans and logical-rules
execution context with local data
ITrigger EMPTY
empty trigger
result for an immutable fuzzy value
IContext instantiate( @Nonnull final IAgent<?> p_agent, @Nonnull final Stream< IVariable<?>> p_variable)
creates an individual execution context
ITrigger trigger()
returns the trigger event
IFuzzyValue< Boolean > condition(final IContext p_context)
execute the plan condition