24 package org.lightjason.agentspeak.language.execution.expression.numerical;
37 import javax.annotation.Nonnull;
38 import java.util.LinkedList;
39 import java.util.List;
63 super( p_operator, p_lefthandside, p_righthandside );
71 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
73 final List<ITerm> l_argument =
new LinkedList<>();
82 l_argument.get( 0 ).<Number>raw(),
83 l_argument.get( 1 ).<Number>raw()
89 l_argument.get( 0 ).<Number>raw(),
90 l_argument.get( 1 ).<Number>raw()
111 private <N extends Number, M extends Number> Number
add( @Nonnull
final N p_left, @Nonnull
final M p_right )
113 return p_left.doubleValue() + p_right.doubleValue();
127 private <N extends Number, M extends Number> Number
subtract( @Nonnull
final N p_left, @Nonnull
final M p_right )
129 return p_left.doubleValue() - p_right.doubleValue();
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
illegal argument exception
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
static final long serialVersionUID
serial id
static< T > String languagestring(final T p_source, final String p_label, final Object... p_parameter)
returns the language depend string on any object
final boolean isAdditive()
check of a additive operator
execution context with local data
private< N extends Number, M extends Number > Number subtract( @Nonnull final N p_left, @Nonnull final M p_right)
runs the subtraction of number types
final EOperator m_operator
expression operator
result for an immutable fuzzy value
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
class for any helper calls
additve binary expression
final boolean executearguments(final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument)
execute expression arguments
private< N extends Number, M extends Number > Number add( @Nonnull final N p_left, @Nonnull final M p_right)
runs the addition of number types
term structure for simple datatypes
CAdditive(final EOperator p_operator, final IExpression p_lefthandside, final IExpression p_righthandside)
ctor