24 package org.lightjason.agentspeak.action.builtin.agent;
38 import javax.annotation.Nonnegative;
39 import javax.annotation.Nonnull;
40 import java.util.Collection;
41 import java.util.List;
70 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return
87 private static boolean statistic( @Nonnull
final ITrigger p_trigger, @Nonnull
final IAgent<?> p_agent, @Nonnull
final List<ITerm> p_return )
89 final Collection<IPlanStatistic> l_plans = p_agent.plans().get( p_trigger );
90 if ( l_plans.isEmpty() )
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
base class of build-in actions for setting name by package/classname (without prefix character) ...
long successful()
returns number of successful execution
long fail()
returns number of failed execution
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
common structure for execution definition
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 boolean statistic( @Nonnull final ITrigger p_trigger, @Nonnull final IAgent<?> p_agent, @Nonnull final List< ITerm > p_return)
creates the plan statistic
action to get plan statistic.
result for an immutable fuzzy value
static final long serialVersionUID
serial id
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
final int minimalArgumentNumber()
minimum number of arguments
term structure for simple datatypes