24 package org.lightjason.agentspeak.language.execution.action;
34 import javax.annotation.Nonnull;
35 import java.text.MessageFormat;
36 import java.util.Collections;
37 import java.util.LinkedList;
38 import java.util.List;
39 import java.util.Objects;
40 import java.util.stream.Stream;
66 m_righthand = p_righthand;
72 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
74 final List<ITerm> l_return =
new LinkedList<>();
76 p_parallel, p_context, Collections.emptyList(), l_return );
77 if ( ( !l_rightreturn.value() ) || ( l_return.isEmpty() ) )
87 return ( Objects.isNull(
m_value ) ? 0 :
m_value.hashCode() ) ^ m_righthand.hashCode();
91 public final boolean equals(
final Object p_object )
93 return ( p_object instanceof
IExecution ) && ( this.
hashCode() == p_object.hashCode() );
99 return MessageFormat.format(
"{0} = {1}",
m_value, m_righthand );
106 return Stream.concat(
108 m_righthand.variables()
final boolean equals(final Object p_object)
final M m_righthand
right-hand argument
final Stream< IVariable<?> > variables()
IVariable< T > set( @Nullable final T p_value)
sets the value
internal execution interface
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
common structure for execution definition
execution context with local data
static final long serialVersionUID
serial id
result for an immutable fuzzy value
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)
assignment action of a single-variable
class for any helper calls
CSingleAssignment( @Nonnull final IVariable<?> p_lefthand, @Nonnull final M p_righthand)
ctor