LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.language.instantiable.rule.CRule Class Reference

rule structure More...

+ Inheritance diagram for org.lightjason.agentspeak.language.instantiable.rule.CRule:
+ Collaboration diagram for org.lightjason.agentspeak.language.instantiable.rule.CRule:

Public Member Functions

 CRule ( @Nonnull final ILiteral p_id, @Nonnull final List< IExecution > p_action)
 ctor More...
 
final ILiteral identifier ()
 returns the identifier of the rule More...
 
final IRule replaceplaceholder ( @Nonnull final Multimap< IPath, IRule > p_rules)
 replaces all placeholder objects and reinstantiate object 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.instantiable.IBaseInstantiable
final boolean equals (final Object p_object)
 
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 IContext instantiate ( @Nonnull final IAgent<?> p_agent, @Nonnull final Stream< IVariable<?>> p_variable)
 creates an individual execution context More...
 
Stream< IVariable<?> > variables ()
 returns a stream with all used variables More...
 

Private Attributes

final ILiteral m_id
 identifier of the rule More...
 

Static Private Attributes

static final long serialVersionUID = -1165818799700126229L
 serial id More...
 

Additional Inherited Members

- Public Attributes inherited from org.lightjason.agentspeak.language.instantiable.rule.IRule
IRule EMPTY
 empty rule More...
 
- Protected Member Functions inherited from org.lightjason.agentspeak.language.instantiable.IBaseInstantiable
 IBaseInstantiable (final List< IExecution > p_action, final Set< IAnnotation<?>> p_annotation, final int p_hash)
 ctor More...
 
- Protected Attributes inherited from org.lightjason.agentspeak.language.instantiable.IBaseInstantiable
final List< IExecutionm_action
 action list More...
 
final Map< IAnnotation.EType, IAnnotation<?> > m_annotation
 map with annotation (enum value for getting annotation object) More...
 

Detailed Description

Definition at line 48 of file CRule.java.

Constructor & Destructor Documentation

◆ CRule()

org.lightjason.agentspeak.language.instantiable.rule.CRule.CRule ( @Nonnull final ILiteral  p_id,
@Nonnull final List< IExecution p_action 
)
Parameters
p_idliteral with signature
p_actionaction list

Definition at line 65 of file CRule.java.

Referenced by org.lightjason.agentspeak.language.instantiable.rule.CRule.replaceplaceholder().

+ Here is the caller graph for this function:

Member Function Documentation

◆ identifier()

final ILiteral org.lightjason.agentspeak.language.instantiable.rule.CRule.identifier ( )
Returns
literal

Implements org.lightjason.agentspeak.language.instantiable.rule.IRule.

Definition at line 80 of file CRule.java.

References org.lightjason.agentspeak.language.instantiable.rule.CRule.m_id.

Referenced by org.lightjason.agentspeak.language.instantiable.rule.CRule.replaceplaceholder().

+ Here is the caller graph for this function:

◆ replaceplaceholder()

final IRule org.lightjason.agentspeak.language.instantiable.rule.CRule.replaceplaceholder ( @Nonnull final Multimap< IPath, IRule p_rules)
Parameters
p_rulesfull instantiated rules
Returns
new object instance without placeholders

Implements org.lightjason.agentspeak.language.instantiable.rule.IRule.

Definition at line 88 of file CRule.java.

References org.lightjason.agentspeak.language.instantiable.rule.CRule.CRule(), org.lightjason.agentspeak.language.instantiable.rule.CRule.identifier(), and org.lightjason.agentspeak.language.instantiable.IBaseInstantiable.m_action.

+ Here is the call graph for this function:

◆ toString()

final String org.lightjason.agentspeak.language.instantiable.rule.CRule.toString ( )

◆ variables()

final Stream<IVariable<?> > org.lightjason.agentspeak.language.instantiable.rule.CRule.variables ( )

Member Data Documentation

◆ m_id

◆ serialVersionUID

final long org.lightjason.agentspeak.language.instantiable.rule.CRule.serialVersionUID = -1165818799700126229L
staticprivate

Definition at line 53 of file CRule.java.