LightJason - AgentSpeak(L++)
|
agent base structure More...
Public Member Functions | |
IBaseAgent ( @Nonnull final IAgentConfiguration< T > p_configuration) | |
ctor More... | |
final IView | beliefbase () |
T | call () throws Exception |
final long | cycletime () |
final IFuzzyBundle< Boolean > | fuzzy () |
final< N extends IInspector > Stream< N > | inspect ( @Nonnull final N... p_inspector) |
final Multimap< ITrigger, IPlanStatistic > | plans () |
final< N extends IAgent<?> > N | raw () |
final Multimap< IPath, IRule > | rules () |
final Multimap< IPath, ILiteral > | runningplans () |
final IAgent< T > | sleep (final long p_cycles, final ITerm... p_term) |
final IAgent< T > | sleep (final long p_cycles, @Nonnull final Stream< ITerm > p_literal) |
final boolean | sleeping () |
final Map< String, Object > | storage () |
String | toString () |
final IFuzzyValue< Boolean > | trigger ( @Nonnull final ITrigger p_trigger, @Nullable final boolean... p_immediately) |
final IUnifier | unifier () |
final IVariableBuilder | variablebuilder () |
final IAgent< T > | wakeup ( @Nullable final ITerm... p_term) |
final IAgent< T > | wakeup ( @Nonnull final Stream< ITerm > p_term) |
Public Member Functions inherited from org.lightjason.agentspeak.agent.IAgent< T > | |
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, IPlanStatistic > | plans () |
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, IRule > | rules () |
returns amultimap with literal-rule functor and rle objects More... | |
Multimap< IPath, ILiteral > | runningplans () |
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... | |
Protected Attributes | |
final IView | m_beliefbase |
beliefbase More... | |
final Multimap< ITrigger, IPlanStatistic > | m_plans |
map with all existing plans and successful / fail runs More... | |
final Multimap< IPath, IRule > | m_rules = Multimaps.synchronizedMultimap( LinkedHashMultimap.create() ) |
multimap with rules More... | |
final Map< String, Object > | m_storage = new ConcurrentHashMap<>() |
storage map More... | |
final Map< Integer, ITrigger > | m_trigger = new ConcurrentHashMap<>() |
execution trigger with content hash More... | |
Static Protected Attributes | |
static final Logger | LOGGER = org.lightjason.agentspeak.common.CCommon.logger( IAgent.class ) |
logger More... | |
Private Member Functions | |
boolean | active (final boolean p_immediatly) |
runs the wakeup goal More... | |
IFuzzyValue< Boolean > | execute ( @Nonnull final Collection< Pair< IPlanStatistic, IContext >> p_execution) |
execute list of plans More... | |
Collection< Pair< IPlanStatistic, IContext > > | generateexecution ( @Nonnull final Stream< ITrigger > p_trigger) |
create execution list with plan and context More... | |
synchronized Collection< Pair< IPlanStatistic, IContext > > | generateexecutionlist () |
create the plan executionlist with clearing internal structures More... | |
Private Attributes | |
final AtomicLong | m_cycletime = new AtomicLong() |
nano seconds at the last cycle More... | |
final IFuzzyBundle< Boolean > | m_fuzzy |
fuzzy result collector More... | |
final Multimap< IPath, ILiteral > | m_runningplans = Multimaps.synchronizedSetMultimap( HashMultimap.create() ) |
running plans (thread-safe) More... | |
final AtomicLong | m_sleepingcycles = new AtomicLong( Long.MIN_VALUE ) |
number of sleeping cycles More... | |
final Set< ITerm > | m_sleepingterm = Collections.synchronizedSet( new HashSet<>() ) |
set for waking-up literals More... | |
final IUnifier | m_unifier |
unifier More... | |
final IVariableBuilder | m_variablebuilder |
variable builder More... | |
Static Private Attributes | |
static final long | serialVersionUID = -304366902555398136L |
serial id More... | |
Additional Inherited Members | |
Public Attributes inherited from org.lightjason.agentspeak.agent.IAgent< T > | |
IAgent<?> | EMPTY |
empty agent More... | |
T | agent type |
Definition at line 81 of file IBaseAgent.java.
org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.IBaseAgent | ( | @Nonnull final IAgentConfiguration< T > | p_configuration | ) |
p_configuration | agent configuration |
Definition at line 153 of file IBaseAgent.java.
|
private |
p_immediatly | runs the wake always |
Definition at line 458 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.call(), and org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.wakeup().
final IView org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.beliefbase | ( | ) |
Definition at line 170 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.consistency.TestCMetric.agent().
T org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.call | ( | ) | throws Exception |
Definition at line 349 of file IBaseAgent.java.
final long org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.cycletime | ( | ) |
Definition at line 265 of file IBaseAgent.java.
|
private |
p_execution | execution collection with instantiated plans and context |
Definition at line 427 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.call(), and org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.trigger().
final IFuzzyBundle<Boolean> org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.fuzzy | ( | ) |
Definition at line 279 of file IBaseAgent.java.
|
private |
p_trigger | trigger stream |
Definition at line 400 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.generateexecutionlist(), and org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.trigger().
|
private |
Definition at line 378 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.call().
final<N extends IInspector> Stream<N> org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.inspect | ( | @Nonnull final N... | p_inspector | ) |
Definition at line 179 of file IBaseAgent.java.
final Multimap<ITrigger, IPlanStatistic> org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.plans | ( | ) |
Definition at line 272 of file IBaseAgent.java.
final<N extends IAgent<?> > N org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.raw | ( | ) |
Definition at line 301 of file IBaseAgent.java.
final Multimap<IPath, IRule> org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.rules | ( | ) |
Definition at line 293 of file IBaseAgent.java.
final Multimap<IPath, ILiteral> org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.runningplans | ( | ) |
Definition at line 197 of file IBaseAgent.java.
final IAgent<T> org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.sleep | ( | final long | p_cycles, |
final ITerm... | p_term | ||
) |
Definition at line 210 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.sleep().
final IAgent<T> org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.sleep | ( | final long | p_cycles, |
@Nonnull final Stream< ITerm > | p_literal | ||
) |
Definition at line 222 of file IBaseAgent.java.
final boolean org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.sleeping | ( | ) |
Definition at line 203 of file IBaseAgent.java.
final Map<String, Object> org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.storage | ( | ) |
Definition at line 251 of file IBaseAgent.java.
String org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.toString | ( | ) |
Definition at line 307 of file IBaseAgent.java.
final IFuzzyValue<Boolean> org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.trigger | ( | @Nonnull final ITrigger | p_trigger, |
@Nullable final boolean... | p_immediately | ||
) |
Definition at line 325 of file IBaseAgent.java.
final IUnifier org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.unifier | ( | ) |
Definition at line 258 of file IBaseAgent.java.
final IVariableBuilder org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.variablebuilder | ( | ) |
Definition at line 286 of file IBaseAgent.java.
final IAgent<T> org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.wakeup | ( | @Nullable final ITerm... | p_term | ) |
Definition at line 231 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.wakeup().
final IAgent<T> org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.wakeup | ( | @Nonnull final Stream< ITerm > | p_term | ) |
Definition at line 242 of file IBaseAgent.java.
|
staticprotected |
Definition at line 86 of file IBaseAgent.java.
|
protected |
Definition at line 94 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.beliefbase(), org.lightjason.agentspeak.beliefbase.TestCPropertyBeliefbase.CAgent.CAgent(), and org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.toString().
|
private |
Definition at line 117 of file IBaseAgent.java.
|
private |
Definition at line 140 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.call(), org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.execute(), org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.fuzzy(), and org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.generateexecution().
|
protected |
Definition at line 112 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.plans().
|
protected |
Definition at line 108 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.rules().
|
private |
Definition at line 144 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.execute(), org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.generateexecutionlist(), and org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.toString().
|
private |
Definition at line 124 of file IBaseAgent.java.
|
private |
Definition at line 128 of file IBaseAgent.java.
|
protected |
Definition at line 100 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.storage().
|
protected |
Definition at line 104 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.action.builtin.TestCActionAgent.CEmptyPlan.trigger().
|
private |
Definition at line 132 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.generateexecution(), and org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.unifier().
|
private |
Definition at line 136 of file IBaseAgent.java.
Referenced by org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.variablebuilder().
|
staticprivate |
Definition at line 90 of file IBaseAgent.java.