24 package org.lightjason.agentspeak.language.execution.action.unify;
34 import javax.annotation.Nonnull;
35 import java.text.MessageFormat;
36 import java.util.List;
38 import java.util.stream.Stream;
64 super( p_parallel, p_literal );
65 m_variable = p_variable;
72 return MessageFormat.format(
"{0}>>({1}, {2})",
m_parallel ?
"@" :
"",
m_value, m_variable );
78 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return
81 final Set<IVariable<?>> l_variables = p_context.agent()
100 Stream.of( m_variable ),
final long m_variablenumber
number of variables
final IVariable<?> m_variable
unification variable with literal
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
common structure for execution definition
final boolean m_parallel
parallel unification
execution context with local data
static List< ITerm > replaceFromContext( @Nonnull final IContext p_context, @Nonnull final Collection<? extends ITerm > p_terms)
replace variables with context variables
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
static IContext updatecontext( @Nonnull final IContext p_context, @Nonnull final Stream< IVariable<?>> p_unifiedvariables)
updates within an instance context all variables of the stream
result for an immutable fuzzy value
static final long serialVersionUID
serial id
final Stream< IVariable<?> > variables()
returns a stream with all used variables
CVariableUnify(final boolean p_parallel, @Nonnull final ILiteral p_literal, @Nonnull final IVariable<?> p_variable)
ctor