LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.language.execution.action.CRawAction< T > Class Template Reference

encapsulate class for any non-executable data type e.g. More...

+ Inheritance diagram for org.lightjason.agentspeak.language.execution.action.CRawAction< T >:
+ Collaboration diagram for org.lightjason.agentspeak.language.execution.action.CRawAction< T >:

Public Member Functions

 CRawAction ( @Nullable final T p_data)
 ctor More...
 
final boolean equals (final Object p_object)
 
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 hashCode ()
 
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.action.IBaseExecution< T >
final T getValue ()
 returns the value of the action More...
 
final boolean isValueAssignableTo (final Class<?> p_class)
 checkes assinable of the value More...
 
String toString ()
 
Stream< IVariable<?> > variables ()
 returns a stream with all used variables More...
 

Private Member Functions

IFuzzyValue< Boolean > getTypedResult ( @Nonnull final Boolean p_execution, @Nonnull final List< ITerm > p_return)
 fixed type result More...
 
IFuzzyValue< Boolean > getTypedResult ( @Nonnull final IVariable<?> p_execution, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_return)
 fixed type result More...
 
IFuzzyValue< Boolean > getTypedResult ( @Nonnull final IExpression p_execution, @Nonnull final IContext p_context, @Nonnull final Boolean p_parallel, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return)
 fixed type result More...
 
IFuzzyValue< Boolean > getTypedResult ( @Nullable final T p_execution, @Nonnull final List< ITerm > p_return)
 fixed type result More...
 

Static Private Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from org.lightjason.agentspeak.language.execution.action.IBaseExecution< T >
 IBaseExecution ( @Nullable final T p_value)
 ctor More...
 
- Protected Attributes inherited from org.lightjason.agentspeak.language.execution.action.IBaseExecution< T >
final T m_value
 data More...
 

Detailed Description

boolean and caching of execution results

Definition at line 47 of file CRawAction.java.

Constructor & Destructor Documentation

◆ CRawAction()

Parameters
p_dataany object data

Definition at line 59 of file CRawAction.java.

Member Function Documentation

◆ equals()

final boolean org.lightjason.agentspeak.language.execution.action.CRawAction< T >.equals ( final Object  p_object)

Definition at line 85 of file CRawAction.java.

References org.lightjason.agentspeak.language.execution.action.CRawAction< T >.hashCode().

+ Here is the call graph for this function:

◆ execute()

final IFuzzyValue<Boolean> org.lightjason.agentspeak.language.execution.action.CRawAction< T >.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 99 of file CRawAction.java.

References org.lightjason.agentspeak.language.execution.action.CRawAction< T >.getTypedResult(), and org.lightjason.agentspeak.language.execution.action.IBaseExecution< T >.m_value.

+ Here is the call graph for this function:

◆ getTypedResult() [1/4]

IFuzzyValue<Boolean> org.lightjason.agentspeak.language.execution.action.CRawAction< T >.getTypedResult ( @Nonnull final Boolean  p_execution,
@Nonnull final List< ITerm p_return 
)
private
Parameters
p_executionboolean value
p_returnnative return
Returns
fuzzy-boolean

Definition at line 120 of file CRawAction.java.

References org.lightjason.agentspeak.language.CRawTerm< T >.from(), and org.lightjason.agentspeak.language.fuzzy.CFuzzyValue< T >.from().

Referenced by org.lightjason.agentspeak.language.execution.action.CRawAction< T >.execute().

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

◆ getTypedResult() [2/4]

IFuzzyValue<Boolean> org.lightjason.agentspeak.language.execution.action.CRawAction< T >.getTypedResult ( @Nonnull final IVariable<?>  p_execution,
@Nonnull final IContext  p_context,
@Nonnull final List< ITerm p_return 
)
private
Parameters
p_executionvariable value
p_contextcontext
p_returnnative return
Returns
fuzzy-boolean

Definition at line 135 of file CRawAction.java.

References org.lightjason.agentspeak.language.CRawTerm< T >.from(), and org.lightjason.agentspeak.language.fuzzy.CFuzzyValue< T >.from().

+ Here is the call graph for this function:

◆ getTypedResult() [3/4]

IFuzzyValue<Boolean> org.lightjason.agentspeak.language.execution.action.CRawAction< T >.getTypedResult ( @Nonnull final IExpression  p_execution,
@Nonnull final IContext  p_context,
@Nonnull final Boolean  p_parallel,
@Nonnull final List< ITerm p_argument,
@Nonnull final List< ITerm p_return 
)
private
Parameters
p_executionexecution element
p_contextcontext
p_parallelparalle execution
p_argumentarguments
p_returnnative return
Returns
fuzzy-boolean

Definition at line 162 of file CRawAction.java.

References org.lightjason.agentspeak.language.fuzzy.CFuzzyValue< T >.from().

+ Here is the call graph for this function:

◆ getTypedResult() [4/4]

IFuzzyValue<Boolean> org.lightjason.agentspeak.language.execution.action.CRawAction< T >.getTypedResult ( @Nullable final T  p_execution,
@Nonnull final List< ITerm p_return 
)
private
Parameters
p_executionany other value
p_returnnative return
Returns
fuzzy-boolean

Definition at line 183 of file CRawAction.java.

References org.lightjason.agentspeak.language.CRawTerm< T >.from(), and org.lightjason.agentspeak.language.fuzzy.CFuzzyValue< T >.from().

+ Here is the call graph for this function:

◆ hashCode()

Definition at line 79 of file CRawAction.java.

References org.lightjason.agentspeak.language.execution.action.IBaseExecution< T >.m_value.

Referenced by org.lightjason.agentspeak.language.execution.action.CRawAction< T >.equals().

+ Here is the caller graph for this function:

◆ toString()

◆ variables()

Returns
variable stream (variables will be cloned on instantiation)

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

Definition at line 67 of file CRawAction.java.

References org.lightjason.agentspeak.language.execution.action.IBaseExecution< T >.m_value.

Member Data Documentation

◆ serialVersionUID

final long org.lightjason.agentspeak.language.execution.action.CRawAction< T >.serialVersionUID = 7181432659241612718L
staticprivate

Definition at line 52 of file CRawAction.java.