24 package org.lightjason.agentspeak.action.builtin.agent;
26 import com.codepoetics.protonpack.StreamUtils;
27 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
42 import javax.annotation.Nonnegative;
43 import javax.annotation.Nonnull;
44 import java.util.Collection;
45 import java.util.List;
46 import java.util.stream.Collectors;
59 @SuppressFBWarnings(
"GC_UNRELATED_TYPES" )
65 private static final long serialVersionUID = 2674034436717184541L;
77 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return
99 @Nonnull
final IAgent<?> p_agent, @Nonnull
final List<ITerm> p_return )
110 catch (
final Exception l_exception )
115 final Collection<IPlanStatistic> l_plans = p_agent.plans().get(
CTrigger.
from( p_trigger, l_literal ) );
116 if ( l_plans.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
static ITrigger from( @Nonnull final EType p_event, @Nonnull final ILiteral p_literal)
creates a trigger event^
final int minimalArgumentNumber()
minimum number of arguments
action to get plan objects.
execution context with local data
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
static boolean query( @Nonnull final ITrigger.EType p_trigger, @Nonnull final ITerm p_literal, @Nonnull final IAgent<?> p_agent, @Nonnull final List< ITerm > p_return)
query tha plan from an agent
default generic literal class for agent beliefs a literal consists of a functor, an optional list of ...
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
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
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
IPlan plan()
plan reference
term structure for simple datatypes