24 package org.lightjason.agentspeak.language.execution.expressionunary;
33 import javax.annotation.Nonnull;
34 import java.util.List;
35 import java.util.stream.Stream;
60 m_variable = p_variable;
66 return m_variable.toString() +
"--";
72 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
76 l_variable.
set( l_variable.<Number>raw().doubleValue() - 1 );
85 return Stream.of( m_variable );
T thrownotallocated()
throws an illegal state exception iif the variable is not allocated
CDecrement( @Nonnull final IVariable< T > p_variable)
ctor
boolean valueassignableto( @Nonnull final Class<?>... p_class)
checkes assignable of the value
IVariable< T > set( @Nullable final T p_value)
sets the value
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
common structure for execution definition
static final long serialVersionUID
serial id
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)
defines a plan-body operation
static List< ITerm > replaceFromContext( @Nonnull final IContext p_context, @Nonnull final Collection<? extends ITerm > p_terms)
replace variables with context variables
final Stream< IVariable<?> > variables()
returns a stream with all used variables
result for an immutable fuzzy value
final IVariable< T > m_variable
variable
interface of variable unary expression