LightJason - AgentSpeak(L++)
|
numerical relation expression More...
Public Member Functions | |
CRelational ( @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 int | compare ( @Nonnull final ITerm p_left, @Nonnull final ITerm p_right) |
compares term types More... | |
static< T extends Number &Comparable< T > int | comparenumber ( @Nonnull final T p_left, @Nonnull final T p_right) |
compare method for any number type More... | |
static< T extends Comparable< T > int | compareobject ( @Nonnull final T p_left, @Nonnull final T p_right) |
compare method for any object type More... | |
static< N, M > N | map ( @Nonnull final M p_value) |
type mapping method More... | |
Static Private Attributes | |
static final long | serialVersionUID = -5844609255203908714L |
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... | |
Definition at line 45 of file CRelational.java.
org.lightjason.agentspeak.language.execution.expression.numerical.CRelational.CRelational | ( | @Nonnull final EOperator | p_operator, |
@Nonnull final IExpression | p_lefthandside, | ||
@Nonnull final IExpression | p_righthandside | ||
) |
p_operator | operator |
p_lefthandside | left-hand-side argument |
p_righthandside | right-hand-side |
Definition at line 59 of file CRelational.java.
References org.lightjason.agentspeak.language.execution.expression.EOperator.isRelational(), org.lightjason.agentspeak.common.CCommon.languagestring(), and org.lightjason.agentspeak.language.execution.expression.IBaseBinary.m_operator.
|
staticprivate |
p_left | left argument |
p_right | right argument |
Definition at line 114 of file CRelational.java.
References org.lightjason.agentspeak.language.execution.expression.numerical.CRelational.comparenumber(), org.lightjason.agentspeak.language.execution.expression.numerical.CRelational.compareobject(), org.lightjason.agentspeak.language.execution.expression.numerical.CRelational.map(), and org.lightjason.agentspeak.language.CCommon.rawvalueAssignableTo().
Referenced by org.lightjason.agentspeak.language.execution.expression.numerical.CRelational.execute().
|
staticprivate |
p_left | left argument |
p_right | right argument |
T | number type |
Definition at line 131 of file CRelational.java.
Referenced by org.lightjason.agentspeak.language.execution.expression.numerical.CRelational.compare().
|
staticprivate |
p_left | left argument |
p_right | right argument |
T | object type |
Definition at line 146 of file CRelational.java.
Referenced by org.lightjason.agentspeak.language.execution.expression.numerical.CRelational.compare().
final IFuzzyValue<Boolean> org.lightjason.agentspeak.language.execution.expression.numerical.CRelational.execute | ( | final boolean | p_parallel, |
@Nonnull final IContext | p_context, | ||
@Nonnull final List< ITerm > | p_argument, | ||
@Nonnull final List< ITerm > | p_return | ||
) |
p_parallel | parallel execution |
p_context | current execution context |
p_argument | parameter of the action |
p_return | return values |
Implements org.lightjason.agentspeak.language.execution.IExecution.
Definition at line 69 of file CRelational.java.
References org.lightjason.agentspeak.language.execution.expression.numerical.CRelational.compare(), 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.
|
staticprivate |
p_value | value |
N | return type |
M | value type |
Definition at line 164 of file CRelational.java.
Referenced by org.lightjason.agentspeak.language.execution.expression.numerical.CRelational.compare().
|
staticprivate |
Definition at line 50 of file CRelational.java.