24 package org.lightjason.agentspeak.language.execution.expression;
33 import javax.annotation.Nonnull;
34 import java.util.LinkedList;
35 import java.util.List;
36 import java.util.stream.Stream;
61 m_execution = p_execution;
67 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
69 final List<ITerm> l_returnarguments =
new LinkedList<>();
70 final IFuzzyValue<Boolean> l_return = m_execution.execute( p_parallel, p_context, p_argument, l_returnarguments );
73 if ( l_returnarguments.isEmpty() )
76 p_return.addAll( l_returnarguments );
85 return m_execution.variables();
91 return m_execution.hashCode();
95 public final boolean equals(
final Object p_object )
97 return ( p_object instanceof
IExpression ) && ( m_execution.equals( p_object ) );
103 return m_execution.toString();
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
internal execution interface
final boolean equals(final Object p_object)
static final long serialVersionUID
serial id
final T m_execution
execution
final Stream< IVariable<?> > variables()
returns a stream with all used variables
execution context with local data
encpasulating any execution context
result for an immutable fuzzy value
CProxyReturnExpression(final T p_execution)
ctor
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
term structure for simple datatypes