24 package org.lightjason.agentspeak.beliefbase;
31 import javax.annotation.Nonnull;
32 import javax.annotation.Nullable;
33 import java.util.Collection;
34 import java.util.Collections;
35 import java.util.stream.Stream;
53 public final boolean empty()
59 public final int size()
73 public final Stream<ITrigger>
trigger( @Nonnull
final IView p_view )
75 return Stream.empty();
82 return Stream.empty();
89 return Stream.empty();
122 public final IView remove( @Nonnull
final IView p_view )
134 public final boolean containsView( @Nonnull
final String p_key )
141 public final IView view( @Nonnull
final String p_key )
148 public final Collection<ILiteral>
literal( @Nonnull
final String p_key )
150 return Collections.emptySet();
162 public final IView create( @Nonnull
final String p_name )
169 public final IView create( @Nonnull
final String p_name, @Nullable
final IView p_parent
184 Stream<ITrigger>
trigger( @Nonnull
final IView p_view );
281 IView view( @Nonnull
final String p_key );
290 Collection<ILiteral>
literal( @Nonnull
final String p_key );
321 IView create( @Nonnull
final String p_name, @Nullable
final IView p_parent );
Stream< IView > streamView()
returns a stream over all views
IBeliefbase clear()
clears all elements
IAgent<?> update( @Nonnull final IAgent<?> p_agent)
updates all items
ILiteral add( @Nonnull final ILiteral p_literal)
adds a literal
boolean empty()
checks if the structure empty
view for a beliefbase that creates any access to the underlying data structures
Stream< ITrigger > trigger( @Nonnull final IView p_view)
returns all trigger of the beliefbase
boolean containsLiteral( @Nonnull final String p_key)
contains a multi-element
IView view( @Nonnull final String p_key)
returns a view element
IView viewOrDefault( @Nonnull final String p_key, @Nullable final IView p_default)
returns a view element
interface of beliefbase definition, that create the trigger events for the agent
Collection< ILiteral > literal( @Nonnull final String p_key)
returns a literal by the name
Stream< ILiteral > streamLiteral()
returns a stream over all literals
interface for equal method on views and beliefbases
int size()
returns the size of literals
IBeliefbase EMPY
empty beliefbase
boolean containsView( @Nonnull final String p_key)
contains a single-element
IView create( @Nonnull final String p_name)
returns a new view of the belief base