LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.language.execution.expression.numerical.CComparable Class Reference

comparable binary expression More...

+ Inheritance diagram for org.lightjason.agentspeak.language.execution.expression.numerical.CComparable:
+ Collaboration diagram for org.lightjason.agentspeak.language.execution.expression.numerical.CComparable:

Public Member Functions

 CComparable ( @Nonnull final EOperator p_operator, @Nonnull final IExpression p_lefthandside, @Nonnull final IExpression p_righthandside)
 ctor More...
 
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 More...
 
- Public Member Functions inherited from org.lightjason.agentspeak.language.execution.expression.IBaseBinary
final boolean equals (final Object p_object)
 
final int hashCode ()
 
final IExpression leftHandSide ()
 returns the left-hand expression side More...
 
final EOperator operator ()
 return expression operator More...
 
final IExpression rightHandSide ()
 returns the right-hand expression side More...
 
final String toString ()
 
final Stream< IVariable<?> > variables ()
 returns a stream with all used variables More...
 

Static Private Member Functions

static boolean checkequal ( @Nonnull final ITerm p_value1, @Nonnull final ITerm p_value2)
 check method with number handling More...
 

Static Private Attributes

static final long serialVersionUID = 3088316270644309406L
 serial id More...
 

Additional Inherited Members

- Public Attributes inherited from org.lightjason.agentspeak.language.execution.expression.IExpression
IExpression EMPTY
 empty expression, is always true More...
 
- Protected Member Functions inherited from org.lightjason.agentspeak.language.execution.expression.IBaseBinary
 IBaseBinary ( @Nonnull final EOperator p_operator, @Nonnull final IExpression p_lefthandside, @Nonnull final IExpression p_righthandside)
 ctor More...
 
final boolean executearguments (final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument) throws IllegalArgumentException
 execute expression arguments More...
 
- Protected Attributes inherited from org.lightjason.agentspeak.language.execution.expression.IBaseBinary
final IExpression m_lefthandside
 left-hand-side argument More...
 
final EOperator m_operator
 expression operator More...
 
final IExpression m_righthandside
 right-hand-side argument More...
 

Detailed Description

Definition at line 44 of file CComparable.java.

Constructor & Destructor Documentation

◆ CComparable()

org.lightjason.agentspeak.language.execution.expression.numerical.CComparable.CComparable ( @Nonnull final EOperator  p_operator,
@Nonnull final IExpression  p_lefthandside,
@Nonnull final IExpression  p_righthandside 
)
Parameters
p_operatoroperator
p_lefthandsideleft-hand-side argument
p_righthandsideright-hand-side

Definition at line 58 of file CComparable.java.

References org.lightjason.agentspeak.language.execution.expression.EOperator.isComparable(), org.lightjason.agentspeak.common.CCommon.languagestring(), and org.lightjason.agentspeak.language.execution.expression.IBaseBinary.m_operator.

+ Here is the call graph for this function:

Member Function Documentation

◆ checkequal()

static boolean org.lightjason.agentspeak.language.execution.expression.numerical.CComparable.checkequal ( @Nonnull final ITerm  p_value1,
@Nonnull final ITerm  p_value2 
)
staticprivate
Parameters
p_value1term value
p_value2term value
Returns
equality flag

Definition at line 97 of file CComparable.java.

References org.lightjason.agentspeak.language.execution.expression.IBaseBinary.equals().

Referenced by org.lightjason.agentspeak.language.execution.expression.numerical.CComparable.execute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ execute()

final IFuzzyValue<Boolean> org.lightjason.agentspeak.language.execution.expression.numerical.CComparable.execute ( final boolean  p_parallel,
@Nonnull final IContext  p_context,
@Nonnull final List< ITerm p_argument,
@Nonnull final List< ITerm p_return 
)
Parameters
p_parallelparallel execution
p_contextcurrent execution context
p_argumentparameter of the action
p_returnreturn values
Returns
fuzzy boolean

Implements org.lightjason.agentspeak.language.execution.IExecution.

Definition at line 67 of file CComparable.java.

References org.lightjason.agentspeak.language.execution.expression.numerical.CComparable.checkequal(), org.lightjason.agentspeak.language.execution.expression.IBaseBinary.executearguments(), org.lightjason.agentspeak.language.CRawTerm< T >.from(), org.lightjason.agentspeak.language.fuzzy.CFuzzyValue< T >.from(), and org.lightjason.agentspeak.language.execution.expression.IBaseBinary.m_operator.

+ Here is the call graph for this function:

Member Data Documentation

◆ serialVersionUID

final long org.lightjason.agentspeak.language.execution.expression.numerical.CComparable.serialVersionUID = 3088316270644309406L
staticprivate

Definition at line 49 of file CComparable.java.