LightJason - AgentSpeak(L++)
|
checks elements of equality. More...
Public Member Functions | |
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... | |
final int | minimalArgumentNumber () |
minimum number of arguments More... | |
![]() | |
final IPath | name () |
returns the name with path of the action More... | |
![]() | |
final boolean | equals (final Object p_object) |
final int | hashCode () |
final String | toString () |
![]() | |
default Stream< IVariable<?> > | variables () |
returns a stream with all used variables More... | |
Protected Member Functions | |
boolean | apply (final boolean p_value) |
apply to change boolean result More... | |
![]() | |
IBuiltinAction () | |
ctor More... | |
IBuiltinAction (final int p_length) | |
ctor More... | |
Private Member Functions | |
IFuzzyValue< Boolean > | pack ( @Nonnull final List< ITerm > p_return, @Nonnull final Stream< Boolean > p_stream) |
pack the result values into term More... | |
Static Private Member Functions | |
static boolean | equalcollection ( @Nonnull final Object[] p_source, @Nonnull final Collection<?> p_target) |
compares collections More... | |
static boolean | equalmap ( @Nonnull final Map<?, ?> p_source, @Nonnull final Map<?, ?> p_target) |
compare maps More... | |
static boolean | equalmultimap ( @Nonnull final Multimap<?, ?> p_source, @Nonnull final Multimap<?, ?> p_target) |
compare multimap More... | |
static boolean | equalobject ( @Nonnull final Object p_source, @Nonnull final Object p_target) |
compare any objects More... | |
Static Private Attributes | |
static final long | serialVersionUID = -2953614515361905328L |
serial id More... | |
Additional Inherited Members | |
![]() | |
long | serialVersionUID = -6374480398439703170L |
serial id More... | |
![]() | |
static final Logger | LOGGER = CCommon.logger( IBuiltinAction.class ) |
logger More... | |
![]() | |
static final Logger | LOGGER = org.lightjason.agentspeak.common.CCommon.logger( IAction.class ) |
logger More... | |
The actions checks the first argument to all others arguments of equality, list structures won't be unflaten, but elementwise compared, the action never fails. On number arguments not the value must equal, also the type (double / integral) must be equal, so keep in mind, that you use the correct number type on the argument input
Definition at line 55 of file CEqual.java.
|
protected |
|
staticprivate |
p_source | source array (converted collection to array) |
p_target | collection to compare |
Definition at line 166 of file CEqual.java.
Referenced by org.lightjason.agentspeak.action.builtin.bool.CEqual.execute().
|
staticprivate |
p_source | source map |
p_target | map to compare |
Definition at line 179 of file CEqual.java.
Referenced by org.lightjason.agentspeak.action.builtin.bool.CEqual.execute().
|
staticprivate |
p_source | source multimap |
p_target | multimap to compare |
Definition at line 193 of file CEqual.java.
Referenced by org.lightjason.agentspeak.action.builtin.bool.CEqual.execute().
|
staticprivate |
p_source | source object |
p_target | object to compare |
Definition at line 153 of file CEqual.java.
Referenced by org.lightjason.agentspeak.action.builtin.bool.CEqual.execute().
final IFuzzyValue<Boolean> org.lightjason.agentspeak.action.builtin.bool.CEqual.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 71 of file CEqual.java.
References org.lightjason.agentspeak.action.builtin.bool.CEqual.equalcollection(), org.lightjason.agentspeak.action.builtin.bool.CEqual.equalmap(), org.lightjason.agentspeak.action.builtin.bool.CEqual.equalmultimap(), org.lightjason.agentspeak.action.builtin.bool.CEqual.equalobject(), org.lightjason.agentspeak.action.builtin.bool.CEqual.pack(), and org.lightjason.agentspeak.language.CCommon.rawvalueAssignableTo().
Referenced by org.lightjason.agentspeak.action.builtin.TestCActionBool.equal(), and org.lightjason.agentspeak.action.builtin.TestCActionBool.notequal().
final int org.lightjason.agentspeak.action.builtin.bool.CEqual.minimalArgumentNumber | ( | ) |
Implements org.lightjason.agentspeak.action.IAction.
Definition at line 64 of file CEqual.java.
|
private |
p_return | return item list |
p_stream | boolean input stream |
Definition at line 137 of file CEqual.java.
References org.lightjason.agentspeak.language.CRawTerm< T >.from(), and org.lightjason.agentspeak.language.fuzzy.CFuzzyValue< T >.from().
Referenced by org.lightjason.agentspeak.action.builtin.bool.CEqual.execute().
|
staticprivate |
Definition at line 60 of file CEqual.java.