24 package org.lightjason.agentspeak.language.execution.expression.numerical;
36 import javax.annotation.Nonnull;
37 import java.util.LinkedList;
38 import java.util.List;
60 super( p_operator, p_lefthandside, p_righthandside );
68 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
70 final List<ITerm> l_argument =
new LinkedList<>();
96 @SuppressWarnings(
"unchecked" )
99 final Object l_value1 = p_value1.raw();
100 final Object l_value2 = p_value2.raw();
102 return ( l_value1 instanceof Number ) && ( l_value2 instanceof Number )
103 ? Double.valueOf( ( (Number) l_value1 ).doubleValue() ).
equals( ( (Number) l_value2 ).doubleValue() )
104 : l_value1.equals( l_value2 );
illegal argument exception
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
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 isComparable()
check of a comparable operator
static final long serialVersionUID
serial id
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
comparable binary expression
execution context with local data
final EOperator m_operator
expression operator
final boolean equals(final Object p_object)
result for an immutable fuzzy value
static boolean checkequal( @Nonnull final ITerm p_value1, @Nonnull final ITerm p_value2)
check method with number handling
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
class for any helper calls
CComparable( @Nonnull final EOperator p_operator, @Nonnull final IExpression p_lefthandside, @Nonnull final IExpression p_righthandside)
ctor
final boolean executearguments(final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument)
execute expression arguments
term structure for simple datatypes