24 package org.lightjason.agentspeak.language.execution.action.achievement_test;
34 import javax.annotation.Nonnull;
35 import java.text.MessageFormat;
36 import java.util.List;
37 import java.util.Objects;
38 import java.util.stream.Stream;
59 super( p_type, p_immediately );
65 return MessageFormat.format(
"{0}{1}",
m_immediately ?
"!!" :
"!", m_value );
71 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
73 return p_context.agent().trigger(
76 m_value.evaluate( p_context )
86 return Objects.isNull( m_value ) ? Stream.empty() : m_value.variables();
static ITrigger from( @Nonnull final EType p_event, @Nonnull final ILiteral p_literal)
creates a trigger event^
abstract achievement-goal class for goal execution
final boolean m_immediately
flag to run immediately
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)
result for an immutable fuzzy value
final Stream< IVariable<?> > variables()
static final long serialVersionUID
serial id
CAchievementGoalVariable( @Nonnull final IVariableEvaluate p_type, final boolean p_immediately)
ctor
interface for evaluate variables
achievement-goal action based on variables