LightJason - AgentSpeak(L++)
|
beliefbase to generate any event-based data by reference counting More...
Public Member Functions | |
CBeliefbase ( @Nonnull final IStorage< ILiteral, IView > p_storage) | |
ctor More... | |
final ILiteral | add ( @Nonnull final ILiteral p_literal) |
adds a literal More... | |
final IView | add ( @Nonnull final IView p_view) |
adds a view More... | |
final IBeliefbase | clear () |
clears all elements More... | |
final boolean | containsLiteral ( @Nonnull final String p_key) |
contains a multi-element More... | |
final boolean | containsView ( @Nonnull final String p_key) |
contains a single-element More... | |
final boolean | empty () |
checks if the structure empty More... | |
final boolean | equals (final Object p_object) |
final int | hashCode () |
final Collection< ILiteral > | literal ( @Nonnull final String p_key) |
returns a literal by the name More... | |
final IView | remove ( @Nonnull final IView p_view) |
removes a view More... | |
final ILiteral | remove ( @Nonnull final ILiteral p_literal) |
removes a literal More... | |
final int | size () |
returns the size of literals More... | |
final Stream< ILiteral > | streamLiteral () |
returns a stream over all literals More... | |
final Stream< IView > | streamView () |
returns a stream over all views More... | |
final String | toString () |
final Stream< ITrigger > | trigger ( @Nonnull final IView p_view) |
returns all trigger of the beliefbase More... | |
final IAgent<?> | update ( @Nonnull final IAgent<?> p_agent) |
updates all items More... | |
final IView | view ( @Nonnull final String p_key) |
returns a view element More... | |
final IView | viewOrDefault ( @Nonnull final String p_key, @Nullable final IView p_default) |
returns a view element More... | |
Public Member Functions inherited from org.lightjason.agentspeak.beliefbase.IBaseBeliefbase | |
ILiteral | add ( @Nonnull final ILiteral p_literal) |
adds a literal More... | |
final IView | create ( @Nonnull final String p_name) |
returns a new view of the belief base More... | |
final IView | create ( @Nonnull final String p_name, final IView p_parent) |
ILiteral | remove ( @Nonnull final ILiteral p_literal) |
removes a literal More... | |
Stream< ITrigger > | trigger ( @Nonnull final IView p_view) |
returns all trigger of the beliefbase More... | |
IAgent<?> | update ( @Nonnull final IAgent<?> p_agent) |
updates all items More... | |
Public Member Functions inherited from org.lightjason.agentspeak.beliefbase.IBeliefbase | |
IView | create ( @Nonnull final String p_name, @Nullable final IView p_parent) |
returns a new view of the belief base More... | |
Private Attributes | |
final IStorage< ILiteral, IView > | m_storage |
storage with data More... | |
Additional Inherited Members | |
Public Attributes inherited from org.lightjason.agentspeak.beliefbase.IBeliefbase | |
IBeliefbase | EMPY |
empty beliefbase More... | |
Protected Member Functions inherited from org.lightjason.agentspeak.beliefbase.IBaseBeliefbase | |
final Stream< ITrigger > | cleartrigger (final IView p_view) |
copy of all trigger values More... | |
ILiteral | event (final ITrigger.EType p_event, final ILiteral p_literal) |
push an event and literal to the event map More... | |
IView | eventreference (final IView p_view) |
adds a view to the event referencing structure More... | |
final IView | internalremove (final IView p_view) |
removes the interal view references More... | |
Definition at line 41 of file CBeliefbase.java.
org.lightjason.agentspeak.beliefbase.CBeliefbase.CBeliefbase | ( | @Nonnull final IStorage< ILiteral, IView > | p_storage | ) |
p_storage | storage |
Definition at line 53 of file CBeliefbase.java.
final ILiteral org.lightjason.agentspeak.beliefbase.CBeliefbase.add | ( | @Nonnull final ILiteral | p_literal | ) |
p_literal | literal without path |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 72 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.putMultiElement().
p_view | view |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 81 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.putSingleElement().
final IBeliefbase org.lightjason.agentspeak.beliefbase.CBeliefbase.clear | ( | ) |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 148 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.clear(), org.lightjason.agentspeak.language.instantiable.plan.trigger.ITrigger.EType.DELETEBELIEF, org.lightjason.agentspeak.beliefbase.IBaseBeliefbase.event(), org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.streamMultiElements(), and org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.streamSingleElements().
final boolean org.lightjason.agentspeak.beliefbase.CBeliefbase.containsLiteral | ( | @Nonnull final String | p_key | ) |
p_key | key |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 105 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.containsMultiElement().
final boolean org.lightjason.agentspeak.beliefbase.CBeliefbase.containsView | ( | @Nonnull final String | p_key | ) |
p_key | key |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 111 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.containsSingleElement().
final boolean org.lightjason.agentspeak.beliefbase.CBeliefbase.empty | ( | ) |
Implements org.lightjason.agentspeak.beliefbase.IStructure.
Definition at line 163 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.empty().
final boolean org.lightjason.agentspeak.beliefbase.CBeliefbase.equals | ( | final Object | p_object | ) |
Definition at line 65 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.CBeliefbase.hashCode().
final int org.lightjason.agentspeak.beliefbase.CBeliefbase.hashCode | ( | ) |
Definition at line 59 of file CBeliefbase.java.
Referenced by org.lightjason.agentspeak.beliefbase.CBeliefbase.equals().
final Collection<ILiteral> org.lightjason.agentspeak.beliefbase.CBeliefbase.literal | ( | @Nonnull final String | p_key | ) |
p_key | name of the literal |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 132 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.getMultiElement().
p_view | view |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 89 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.IBaseBeliefbase.internalremove(), and org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.removeSingleElement().
final ILiteral org.lightjason.agentspeak.beliefbase.CBeliefbase.remove | ( | @Nonnull final ILiteral | p_literal | ) |
p_literal | without path |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 97 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.removeMultiElement().
final int org.lightjason.agentspeak.beliefbase.CBeliefbase.size | ( | ) |
Implements org.lightjason.agentspeak.beliefbase.IStructure.
Definition at line 169 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.IStructure.size(), org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.size(), and org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.streamSingleElements().
final Stream<ILiteral> org.lightjason.agentspeak.beliefbase.CBeliefbase.streamLiteral | ( | ) |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 186 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.streamMultiElements().
final Stream<IView> org.lightjason.agentspeak.beliefbase.CBeliefbase.streamView | ( | ) |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 193 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.streamSingleElements().
final String org.lightjason.agentspeak.beliefbase.CBeliefbase.toString | ( | ) |
Definition at line 199 of file CBeliefbase.java.
final Stream<ITrigger> org.lightjason.agentspeak.beliefbase.CBeliefbase.trigger | ( | @Nonnull final IView | p_view | ) |
p_view | mask for events |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 176 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.streamSingleElements(), and org.lightjason.agentspeak.beliefbase.view.IView.trigger().
final IAgent<?> org.lightjason.agentspeak.beliefbase.CBeliefbase.update | ( | @Nonnull final IAgent<?> | p_agent | ) |
p_agent | agent which runs the update call |
Implements org.lightjason.agentspeak.beliefbase.IStructure.
Definition at line 139 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.streamSingleElements(), and org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.update().
final IView org.lightjason.agentspeak.beliefbase.CBeliefbase.view | ( | @Nonnull final String | p_key | ) |
p_key | name of the view |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 118 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.getSingleElement().
final IView org.lightjason.agentspeak.beliefbase.CBeliefbase.viewOrDefault | ( | @Nonnull final String | p_key, |
@Nullable final IView | p_default | ||
) |
p_key | name of the view |
p_default | view |
Implements org.lightjason.agentspeak.beliefbase.IBeliefbase.
Definition at line 125 of file CBeliefbase.java.
References org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.getSingleElementOrDefault().
Definition at line 46 of file CBeliefbase.java.