LightJason - AgentSpeak(L++)
|
action for binding a method. More...
Public Member Functions | |
CMethodAction ( @Nonnull final Method p_method) throws IllegalAccessException | |
ctor More... | |
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... | |
Public Member Functions inherited from org.lightjason.agentspeak.action.IBaseAction | |
final boolean | equals (final Object p_object) |
final int | hashCode () |
final String | toString () |
Public Member Functions inherited from org.lightjason.agentspeak.action.IAction | |
default Stream< IVariable<?> > | variables () |
returns a stream with all used variables More... | |
Private Member Functions | |
void | readObject (final ObjectInputStream p_stream) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException |
deserializable call More... | |
void | writeObject (final ObjectOutputStream p_stream) throws IOException |
serialize call More... | |
Static Private Member Functions | |
static IFuzzyValue< Boolean > | returnvalues ( @Nullable final Object p_result, @Nonnull final List< ITerm > p_return) |
creates the returns values of the execution More... | |
Private Attributes | |
final int | m_arguments |
number of arguments More... | |
transient Method | m_method |
method reference More... | |
transient MethodHandle | m_methodhandle |
method handle More... | |
final IPath | m_name |
name of the action More... | |
Static Private Attributes | |
static final long | serialVersionUID = -507236338411690842L |
serial id More... | |
Additional Inherited Members | |
Public Attributes inherited from org.lightjason.agentspeak.action.IAction | |
long | serialVersionUID = -6374480398439703170L |
serial id More... | |
Static Protected Attributes inherited from org.lightjason.agentspeak.action.IBaseAction | |
static final Logger | LOGGER = org.lightjason.agentspeak.common.CCommon.logger( IAction.class ) |
logger More... | |
action uses agent for object binding
Definition at line 56 of file CMethodAction.java.
org.lightjason.agentspeak.action.binding.CMethodAction.CMethodAction | ( | @Nonnull final Method | p_method | ) | throws IllegalAccessException |
p_method | method reference |
IllegalAccessException | on method access error |
Definition at line 86 of file CMethodAction.java.
References org.lightjason.agentspeak.common.CPath.from().
IFuzzyValue<Boolean> org.lightjason.agentspeak.action.binding.CMethodAction.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 149 of file CMethodAction.java.
References org.lightjason.agentspeak.language.fuzzy.CFuzzyValue< T >.from(), org.lightjason.agentspeak.action.IBaseAction.LOGGER, org.lightjason.agentspeak.action.binding.CMethodAction.m_arguments, org.lightjason.agentspeak.action.binding.CMethodAction.m_methodhandle, org.lightjason.agentspeak.action.binding.CMethodAction.m_name, org.lightjason.agentspeak.language.ITerm.raw(), and org.lightjason.agentspeak.action.binding.CMethodAction.returnvalues().
final int org.lightjason.agentspeak.action.binding.CMethodAction.minimalArgumentNumber | ( | ) |
Implements org.lightjason.agentspeak.action.IAction.
Definition at line 142 of file CMethodAction.java.
References org.lightjason.agentspeak.action.binding.CMethodAction.m_arguments.
final IPath org.lightjason.agentspeak.action.binding.CMethodAction.name | ( | ) |
Implements org.lightjason.agentspeak.action.IAction.
Definition at line 135 of file CMethodAction.java.
References org.lightjason.agentspeak.action.binding.CMethodAction.m_name.
|
private |
p_stream | object stream |
IOException | is thrown on io error |
ClassNotFoundException | is thrown on deserialization error |
NoSuchMethodException | is thrown on method deserialization |
IllegalAccessException | is thrown on creating method handle |
Definition at line 124 of file CMethodAction.java.
|
staticprivate |
p_result | return object of the invoke call |
p_return | return argument list |
Definition at line 187 of file CMethodAction.java.
References org.lightjason.agentspeak.action.IBaseAction.equals(), org.lightjason.agentspeak.language.CRawTerm< T >.from(), and org.lightjason.agentspeak.language.fuzzy.CFuzzyValue< T >.from().
Referenced by org.lightjason.agentspeak.action.binding.CMethodAction.execute().
|
private |
p_stream | object stream |
IOException | error on writing object data |
Definition at line 104 of file CMethodAction.java.
|
private |
Definition at line 69 of file CMethodAction.java.
Referenced by org.lightjason.agentspeak.action.binding.CMethodAction.execute(), and org.lightjason.agentspeak.action.binding.CMethodAction.minimalArgumentNumber().
|
private |
Definition at line 73 of file CMethodAction.java.
|
private |
Definition at line 77 of file CMethodAction.java.
Referenced by org.lightjason.agentspeak.action.binding.CMethodAction.execute().
|
private |
Definition at line 65 of file CMethodAction.java.
Referenced by org.lightjason.agentspeak.action.binding.CMethodAction.execute(), and org.lightjason.agentspeak.action.binding.CMethodAction.name().
|
staticprivate |
Definition at line 61 of file CMethodAction.java.