24 package org.lightjason.agentspeak.language.execution.expression.numerical;
37 import javax.annotation.Nonnull;
38 import java.util.LinkedList;
39 import java.util.List;
61 super( p_operator, p_lefthandside, p_righthandside );
70 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
72 final List<ITerm> l_argument =
new LinkedList<>();
131 private static <T extends Number & Comparable<T>>
int comparenumber( @Nonnull
final T p_left, @Nonnull
final T p_right )
133 return Double.compare( p_left.doubleValue(), p_right.doubleValue() );
146 private static <T extends Comparable<T>>
int compareobject( @Nonnull
final T p_left, @Nonnull
final T p_right )
148 return p_left.compareTo( p_right );
163 @SuppressWarnings(
"unchecked" )
164 private static <N, M> N
map( @Nonnull final M p_value )
static< N, M > N map( @Nonnull final M p_value)
type mapping method
illegal argument exception
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
CRelational( @Nonnull final EOperator p_operator, @Nonnull final IExpression p_lefthandside, @Nonnull final IExpression p_righthandside)
ctor
common structure for execution definition
final boolean isRelational()
check of a relational operator
static< T > String languagestring(final T p_source, final String p_label, final Object... p_parameter)
returns the language depend string on any object
static final long serialVersionUID
serial id
static int compare( @Nonnull final ITerm p_left, @Nonnull final ITerm p_right)
compares term types
numerical relation expression
execution context with local data
final EOperator m_operator
expression operator
static< T extends Comparable< T > int compareobject( @Nonnull final T p_left, @Nonnull final T p_right)
compare method for any object type
static< T > boolean rawvalueAssignableTo( @Nonnull final T p_value, @Nonnull final Class<?>... p_class)
checks a term value for assignable class
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
static< T extends Number &Comparable< T > int comparenumber( @Nonnull final T p_left, @Nonnull final T p_right)
compare method for any number type
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
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