LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?> Interface Template Reference

agent interface More...

+ Inheritance diagram for org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>:
+ Collaboration diagram for org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>:

Public Member Functions

IView beliefbase ()
 returns the beliefbase More...
 
long cycletime ()
 returns the time in nano seconds at the last cycle More...
 
IFuzzyBundle< Boolean > fuzzy ()
 return fuzzy operator More...
 
< N extends IInspector > Stream< N > inspect ( @Nonnull final N... p_inspector)
 inspector method More...
 
Multimap< ITrigger, IPlanStatisticplans ()
 returns the internal map of plans More...
 
< N extends IAgent<?> N raw ()
 cast the interface agent object to a specified agent object More...
 
Multimap< IPath, IRulerules ()
 returns amultimap with literal-rule functor and rle objects More...
 
Multimap< IPath, ILiteralrunningplans ()
 returns a map of the current running plans More...
 
IAgent< T > sleep (final long p_cycles, @Nullable final ITerm... p_term)
 pushs the agent into sleeping state More...
 
IAgent< T > sleep (final long p_cycles, @Nonnull final Stream< ITerm > p_term)
 pushs the agent into sleeping state More...
 
boolean sleeping ()
 returns sleeping state More...
 
Map< String, Object > storage ()
 storage access More...
 
IFuzzyValue< Boolean > trigger ( @Nonnull final ITrigger p_trigger, @Nullable final boolean... p_immediately)
 trigger an event More...
 
IUnifier unifier ()
 returns an unifier More...
 
IVariableBuilder variablebuilder ()
 returns the variable builder function More...
 
IAgent< T > wakeup ( @Nullable final ITerm... p_term)
 wake-up the agent by generating wakeup-goal More...
 
IAgent< T > wakeup ( @Nonnull final Stream< ITerm > p_term)
 wake-up the agent by generating wakeup-goal More...
 

Public Attributes

IAgent<?> EMPTY
 empty agent More...
 

Detailed Description

Template Parameters
Tagent type

Definition at line 58 of file IAgent.java.

Member Function Documentation

◆ beliefbase()

◆ cycletime()

long org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>.cycletime ( )
Returns
nano seconds

◆ fuzzy()

Returns
operator

◆ inspect()

<N extends IInspector> Stream<N> org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>.inspect ( @Nonnull final N...  p_inspector)
Parameters
p_inspectorinspector object
Returns
inspector stream or empty stream

◆ plans()

◆ raw()

<N extends IAgent<?> N org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>.raw ( )
Returns
specified agent

◆ rules()

Multimap<IPath, IRule> org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>.rules ( )
Returns
multimap

◆ runningplans()

Multimap<IPath, ILiteral> org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>.runningplans ( )
Returns
map with running plans and the instance literal

Referenced by org.lightjason.agentspeak.consistency.filter.CPlan.apply(), and org.lightjason.agentspeak.consistency.filter.CAll.apply().

+ Here is the caller graph for this function:

◆ sleep() [1/2]

IAgent<T> org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>.sleep ( final long  p_cycles,
@Nullable final ITerm...  p_term 
)
Parameters
p_cyclesnumber of cycles for sleeping - if is set to maximum the sleeping time is infinity
p_termliteral list for wake-up calls
Returns
agent reference

◆ sleep() [2/2]

IAgent<T> org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>.sleep ( final long  p_cycles,
@Nonnull final Stream< ITerm p_term 
)
Parameters
p_cyclesnumber of cycles for sleeping - if is set to maximum the sleeping time is infinity
p_termterm stream for wake-up calls
Returns
agent reference

◆ sleeping()

boolean org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>.sleeping ( )
Returns
sleeping flag

◆ storage()

◆ trigger()

IFuzzyValue<Boolean> org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>.trigger ( @Nonnull final ITrigger  p_trigger,
@Nullable final boolean...  p_immediately 
)
Parameters
p_triggerevent trigger
p_immediatelyrun element immediately
Returns
execution finished correctly
Note
the trigger is ignored iif the agent is sleeping

◆ unifier()

Returns
unification algorithm

◆ variablebuilder()

Returns
variable builder function

◆ wakeup() [1/2]

IAgent<T> org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>.wakeup ( @Nullable final ITerm...  p_term)
Parameters
p_termany term value which will push into the wake-up plan
Returns
agent reference

◆ wakeup() [2/2]

IAgent<T> org.lightjason.agentspeak.agent.IAgent< T extends IAgent<?>.wakeup ( @Nonnull final Stream< ITerm p_term)
Parameters
p_termstream to call wake-up plan
Returns
agent reference

Member Data Documentation

◆ EMPTY

Definition at line 63 of file IAgent.java.