24 package org.lightjason.agentspeak.action.builtin.agent;
26 import com.codepoetics.protonpack.StreamUtils;
27 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
40 import javax.annotation.Nonnegative;
41 import javax.annotation.Nonnull;
42 import java.util.List;
53 @SuppressFBWarnings(
"GC_UNRELATED_TYPES" )
60 private static final long serialVersionUID = -2509947123811973880L;
72 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return
103 catch (
final Exception l_exception )
108 return !p_agent.plans().removeAll(
CTrigger.
from( p_trigger, l_literal ) ).isEmpty();
base class of build-in actions for setting name by package/classname (without prefix character) ...
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
common structure for execution definition
removes a plan by the plan trigger.
final int minimalArgumentNumber()
minimum number of arguments
static ITrigger from( @Nonnull final EType p_event, @Nonnull final ILiteral p_literal)
creates a trigger event^
execution context with local data
final 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
static Stream< ITerm > flatten( @Nonnull final Collection<? extends ITerm > p_terms)
flat term-in-term collection into a straight term list
static< T > boolean rawvalueAssignableTo( @Nonnull final T p_value, @Nonnull final Class<?>... p_class)
checks a term value for assignable class
result for an immutable fuzzy value
default generic literal class for agent beliefs a literal consists of a functor, an optional list of ...
static ILiteral parse( @Nonnull final String p_literal)
factory
static EType from( @Nonnull final String p_sequence)
returns a trigger type by the char sequence
static boolean remove( @Nonnull final ITrigger.EType p_trigger, @Nonnull final ITerm p_literal, @Nonnull final IAgent<?> p_agent)
removes the plan based on the trigger