24 package org.lightjason.agentspeak.language.execution.expression.logical;
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<>();
79 p_return.add(
CRawTerm.
from( l_argument.get( 0 ).<Boolean>raw() && l_argument.get( 1 ).<Boolean>raw() ) );
83 p_return.add(
CRawTerm.
from( l_argument.get( 0 ).<Boolean>raw() || l_argument.get( 1 ).<Boolean>raw() ) );
87 p_return.add(
CRawTerm.
from( l_argument.get( 0 ).<Boolean>raw() ^ l_argument.get( 1 ).<Boolean>raw() ) );
final boolean isLogical()
check of a logical operator
illegal argument exception
static final long serialVersionUID
serial id
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
CBinary( @Nonnull final EOperator p_operator, @Nonnull final IExpression p_lefthandside, @Nonnull final IExpression p_righthandside)
ctor
execution context with local data
final EOperator m_operator
expression operator
logical binary expression
result for an immutable fuzzy value
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< N > CRawTerm< N > from(final N p_value)
factory for a raw term
class for any helper calls
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