LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.language.execution.expression.IBaseBinary Class Referenceabstract

binary expression More...

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

Public Member Functions

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...
 
- Public Member Functions inherited from org.lightjason.agentspeak.language.execution.IExecution
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...
 

Protected Member Functions

 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

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...
 

Static Private Attributes

static final long serialVersionUID = 1630029294068548691L
 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...
 

Detailed Description

Definition at line 42 of file IBaseBinary.java.

Constructor & Destructor Documentation

◆ IBaseBinary()

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

Definition at line 70 of file IBaseBinary.java.

References org.lightjason.agentspeak.common.CCommon.languagestring().

+ Here is the call graph for this function:

Member Function Documentation

◆ equals()

final boolean org.lightjason.agentspeak.language.execution.expression.IBaseBinary.equals ( final Object  p_object)

Definition at line 137 of file IBaseBinary.java.

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

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

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

◆ executearguments()

final boolean org.lightjason.agentspeak.language.execution.expression.IBaseBinary.executearguments ( final boolean  p_parallel,
@Nonnull final IContext  p_context,
@Nonnull final List< ITerm p_argument 
) throws IllegalArgumentException
protected
Parameters
p_parallelparallel execution
p_contextexecution context
p_argumentreturning arguments of the expressions
Returns
boolean of successfully execution
Exceptions
IllegalArgumentExceptionis thrown if more than two arguments are returned

Definition at line 89 of file IBaseBinary.java.

References org.lightjason.agentspeak.language.execution.IExecution.execute(), and org.lightjason.agentspeak.common.CCommon.languagestring().

Referenced by org.lightjason.agentspeak.language.execution.expression.logical.CBinary.execute(), org.lightjason.agentspeak.language.execution.expression.numerical.CPower.execute(), org.lightjason.agentspeak.language.execution.expression.numerical.CComparable.execute(), org.lightjason.agentspeak.language.execution.expression.numerical.CRelational.execute(), org.lightjason.agentspeak.language.execution.expression.numerical.CMultiplicative.execute(), and org.lightjason.agentspeak.language.execution.expression.numerical.CAdditive.execute().

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

◆ hashCode()

final int org.lightjason.agentspeak.language.execution.expression.IBaseBinary.hashCode ( )

Definition at line 131 of file IBaseBinary.java.

Referenced by org.lightjason.agentspeak.language.execution.expression.IBaseBinary.equals().

+ Here is the caller graph for this function:

◆ leftHandSide()

final IExpression org.lightjason.agentspeak.language.execution.expression.IBaseBinary.leftHandSide ( )

◆ operator()

final EOperator org.lightjason.agentspeak.language.execution.expression.IBaseBinary.operator ( )

◆ rightHandSide()

final IExpression org.lightjason.agentspeak.language.execution.expression.IBaseBinary.rightHandSide ( )

◆ toString()

final String org.lightjason.agentspeak.language.execution.expression.IBaseBinary.toString ( )

Definition at line 143 of file IBaseBinary.java.

◆ variables()

final Stream<IVariable<?> > org.lightjason.agentspeak.language.execution.expression.IBaseBinary.variables ( )
Returns
variable stream (variables will be cloned on instantiation)

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

Definition at line 150 of file IBaseBinary.java.

References org.lightjason.agentspeak.language.execution.IExecution.variables().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_lefthandside

final IExpression org.lightjason.agentspeak.language.execution.expression.IBaseBinary.m_lefthandside
protected

◆ m_operator

◆ m_righthandside

final IExpression org.lightjason.agentspeak.language.execution.expression.IBaseBinary.m_righthandside
protected

◆ serialVersionUID

final long org.lightjason.agentspeak.language.execution.expression.IBaseBinary.serialVersionUID = 1630029294068548691L
staticprivate

Definition at line 47 of file IBaseBinary.java.