24 package org.lightjason.agentspeak.language.execution.action;
32 import javax.annotation.Nonnull;
33 import java.text.MessageFormat;
34 import java.util.List;
35 import java.util.Objects;
36 import java.util.stream.Stream;
62 m_fallback = p_fallback;
68 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
71 return l_return.
value() ? l_return : m_fallback.
execute( p_parallel, p_context, p_argument, p_return );
87 return MessageFormat.format(
"{0} << {1}",
m_value, m_fallback );
T value()
returns the result
static final long serialVersionUID
serial id
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
internal execution interface
IFuzzyValue< Boolean > execute(final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return)
execution context with local data
final IExecution m_fallback
fallback execution
result for an immutable fuzzy value
defines an execution element with a repair call
final Stream< IVariable<?> > variables()
CRepair( @Nonnull final IExecution p_value, @Nonnull final IExecution p_fallback)
ctor