LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.beliefbase.IBeliefbase Interface Reference

interface of beliefbase definition, that create the trigger events for the agent More...

+ Inheritance diagram for org.lightjason.agentspeak.beliefbase.IBeliefbase:
+ Collaboration diagram for org.lightjason.agentspeak.beliefbase.IBeliefbase:

Public Member Functions

ILiteral add ( @Nonnull final ILiteral p_literal)
 adds a literal More...
 
IView add ( @Nonnull final IView p_view)
 adds a view More...
 
IBeliefbase clear ()
 clears all elements More...
 
boolean containsLiteral ( @Nonnull final String p_key)
 contains a multi-element More...
 
boolean containsView ( @Nonnull final String p_key)
 contains a single-element More...
 
IView create ( @Nonnull final String p_name)
 returns a new view of the belief base More...
 
IView create ( @Nonnull final String p_name, @Nullable final IView p_parent)
 returns a new view of the belief base More...
 
Collection< ILiteralliteral ( @Nonnull final String p_key)
 returns a literal by the name More...
 
ILiteral remove ( @Nonnull final ILiteral p_literal)
 removes a literal More...
 
IView remove ( @Nonnull final IView p_view)
 removes a view More...
 
Stream< ILiteralstreamLiteral ()
 returns a stream over all literals More...
 
Stream< IViewstreamView ()
 returns a stream over all views More...
 
Stream< ITriggertrigger ( @Nonnull final IView p_view)
 returns all trigger of the beliefbase More...
 
IView view ( @Nonnull final String p_key)
 returns a view element More...
 
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.IStructure
boolean empty ()
 checks if the structure empty More...
 
int size ()
 returns the size of literals More...
 
IAgent<?> update ( @Nonnull final IAgent<?> p_agent)
 updates all items More...
 

Public Attributes

IBeliefbase EMPY
 empty beliefbase More...
 

Detailed Description

Template Parameters
Tagent type

Definition at line 44 of file IBeliefbase.java.

Member Function Documentation

◆ add() [1/2]

ILiteral org.lightjason.agentspeak.beliefbase.IBeliefbase.add ( @Nonnull final ILiteral  p_literal)
Parameters
p_literalliteral without path
Returns
beliefbase reference

Implemented in org.lightjason.agentspeak.beliefbase.view.CViewMap.CWrapperBeliefbase, org.lightjason.agentspeak.beliefbase.IBaseBeliefbase, org.lightjason.agentspeak.beliefbase.CBeliefbase, and org.lightjason.agentspeak.beliefbase.IBeliefbaseOnDemand< T extends IAgent<?>.

Referenced by org.lightjason.agentspeak.beliefbase.view.CView.add(), and org.lightjason.agentspeak.beliefbase.view.CView.walkdown().

+ Here is the caller graph for this function:

◆ add() [2/2]

IView org.lightjason.agentspeak.beliefbase.IBeliefbase.add ( @Nonnull final IView  p_view)

◆ clear()

IBeliefbase org.lightjason.agentspeak.beliefbase.IBeliefbase.clear ( )
Returns
beliefbase reference

Implemented in org.lightjason.agentspeak.beliefbase.view.CViewMap.CWrapperBeliefbase, org.lightjason.agentspeak.beliefbase.CBeliefbase, and org.lightjason.agentspeak.beliefbase.IBeliefbaseOnDemand< T extends IAgent<?>.

Referenced by org.lightjason.agentspeak.beliefbase.view.CView.clear().

+ Here is the caller graph for this function:

◆ containsLiteral()

boolean org.lightjason.agentspeak.beliefbase.IBeliefbase.containsLiteral ( @Nonnull final String  p_key)
Parameters
p_keykey
Returns
boolean existing flag

Implemented in org.lightjason.agentspeak.beliefbase.view.CViewMap.CWrapperBeliefbase, org.lightjason.agentspeak.beliefbase.CBeliefbase, and org.lightjason.agentspeak.beliefbase.IBeliefbaseOnDemand< T extends IAgent<?>.

Referenced by org.lightjason.agentspeak.beliefbase.view.CView.containsLiteral(), and org.lightjason.agentspeak.beliefbase.view.CViewMap.containsLiteral().

+ Here is the caller graph for this function:

◆ containsView()

boolean org.lightjason.agentspeak.beliefbase.IBeliefbase.containsView ( @Nonnull final String  p_key)
Parameters
p_keykey
Returns
boolean existing flag

Implemented in org.lightjason.agentspeak.beliefbase.view.CViewMap.CWrapperBeliefbase, org.lightjason.agentspeak.beliefbase.IBeliefbaseOnDemand< T extends IAgent<?>, and org.lightjason.agentspeak.beliefbase.CBeliefbase.

Referenced by org.lightjason.agentspeak.beliefbase.view.CView.containsView(), and org.lightjason.agentspeak.beliefbase.view.CViewMap.containsView().

+ Here is the caller graph for this function:

◆ create() [1/2]

IView org.lightjason.agentspeak.beliefbase.IBeliefbase.create ( @Nonnull final String  p_name)

◆ create() [2/2]

IView org.lightjason.agentspeak.beliefbase.IBeliefbase.create ( @Nonnull final String  p_name,
@Nullable final IView  p_parent 
)
Parameters
p_namename of the view
p_parentparent view
Returns
view

Implemented in org.lightjason.agentspeak.beliefbase.view.CViewMap.CWrapperBeliefbase.

◆ literal()

Collection<ILiteral> org.lightjason.agentspeak.beliefbase.IBeliefbase.literal ( @Nonnull final String  p_key)
Parameters
p_keyname of the literal
Returns
collection of pairs with negated and literal

Implemented in org.lightjason.agentspeak.beliefbase.view.CViewMap.CWrapperBeliefbase, org.lightjason.agentspeak.beliefbase.CBeliefbase, and org.lightjason.agentspeak.beliefbase.IBeliefbaseOnDemand< T extends IAgent<?>.

Referenced by org.lightjason.agentspeak.beliefbase.view.CView.stream(), and org.lightjason.agentspeak.beliefbase.view.CViewMap.stream().

+ Here is the caller graph for this function:

◆ remove() [1/2]

ILiteral org.lightjason.agentspeak.beliefbase.IBeliefbase.remove ( @Nonnull final ILiteral  p_literal)
Parameters
p_literalwithout path
Returns
beliefbase reference

Implemented in org.lightjason.agentspeak.beliefbase.view.CViewMap.CWrapperBeliefbase, org.lightjason.agentspeak.beliefbase.IBaseBeliefbase, org.lightjason.agentspeak.beliefbase.CBeliefbase, and org.lightjason.agentspeak.beliefbase.IBeliefbaseOnDemand< T extends IAgent<?>.

Referenced by org.lightjason.agentspeak.beliefbase.view.CView.remove().

+ Here is the caller graph for this function:

◆ remove() [2/2]

IView org.lightjason.agentspeak.beliefbase.IBeliefbase.remove ( @Nonnull final IView  p_view)

◆ streamLiteral()

Stream<ILiteral> org.lightjason.agentspeak.beliefbase.IBeliefbase.streamLiteral ( )
Returns
literal stream

Implemented in org.lightjason.agentspeak.beliefbase.view.CViewMap.CWrapperBeliefbase, org.lightjason.agentspeak.beliefbase.CBeliefbase, and org.lightjason.agentspeak.beliefbase.IBeliefbaseOnDemand< T extends IAgent<?>.

Referenced by org.lightjason.agentspeak.beliefbase.view.CView.stream(), and org.lightjason.agentspeak.beliefbase.view.CViewMap.stream().

+ Here is the caller graph for this function:

◆ streamView()

Stream<IView> org.lightjason.agentspeak.beliefbase.IBeliefbase.streamView ( )
Returns
view stream

Implemented in org.lightjason.agentspeak.beliefbase.view.CViewMap.CWrapperBeliefbase, org.lightjason.agentspeak.beliefbase.CBeliefbase, and org.lightjason.agentspeak.beliefbase.IBeliefbaseOnDemand< T extends IAgent<?>.

Referenced by org.lightjason.agentspeak.beliefbase.view.CView.stream(), and org.lightjason.agentspeak.beliefbase.view.CViewMap.stream().

+ Here is the caller graph for this function:

◆ trigger()

Stream<ITrigger> org.lightjason.agentspeak.beliefbase.IBeliefbase.trigger ( @Nonnull final IView  p_view)
Parameters
p_viewmask for events
Returns
set with trigger events

Implemented in org.lightjason.agentspeak.beliefbase.view.CViewMap.CWrapperBeliefbase, org.lightjason.agentspeak.beliefbase.CBeliefbase, and org.lightjason.agentspeak.beliefbase.IBaseBeliefbase.

Referenced by org.lightjason.agentspeak.beliefbase.view.CView.trigger(), and org.lightjason.agentspeak.beliefbase.view.CViewMap.trigger().

+ Here is the caller graph for this function:

◆ view()

IView org.lightjason.agentspeak.beliefbase.IBeliefbase.view ( @Nonnull final String  p_key)

◆ viewOrDefault()

IView org.lightjason.agentspeak.beliefbase.IBeliefbase.viewOrDefault ( @Nonnull final String  p_key,
@Nullable final IView  p_default 
)
Parameters
p_keyname of the view
p_defaultview
Returns
view or default element

Implemented in org.lightjason.agentspeak.beliefbase.view.CViewMap.CWrapperBeliefbase, and org.lightjason.agentspeak.beliefbase.CBeliefbase.

Referenced by org.lightjason.agentspeak.beliefbase.view.CView.walkdown().

+ Here is the caller graph for this function:

Member Data Documentation

◆ EMPY

IBeliefbase org.lightjason.agentspeak.beliefbase.IBeliefbase.EMPY

Definition at line 49 of file IBeliefbase.java.