24 package org.lightjason.agentspeak.beliefbase.view;
33 import javax.annotation.Nonnull;
34 import javax.annotation.Nullable;
35 import java.util.stream.Stream;
54 @SuppressWarnings(
"varargs" )
57 return Stream.empty();
69 public final Stream<IView>
root()
71 return Stream.empty();
90 public final String
name()
110 public final Stream<ITrigger>
trigger()
112 return Stream.empty();
117 public final Stream<ILiteral>
stream( @Nullable
final IPath... p_path )
119 return Stream.empty();
124 public final Stream<ILiteral>
stream(
final boolean p_negated, @Nullable
final IPath... p_path )
126 return Stream.empty();
138 public final IView add( @Nonnull
final Stream<ILiteral> p_literal )
145 @SuppressWarnings(
"varargs" )
160 public final IView remove( @Nonnull
final Stream<ILiteral> p_literal )
167 public final IView remove( @Nonnull
final ILiteral... p_literal )
174 public final IView remove( @Nonnull
final IView... p_view )
192 public final boolean empty()
198 public final int size()
221 @SuppressWarnings(
"unchecked" )
242 Stream<IView>
root();
304 Stream<ILiteral>
stream( @Nullable
final IPath... p_path );
314 Stream<ILiteral>
stream(
final boolean p_negated, @Nullable
final IPath... p_path );
345 IView add( @Nonnull
final Stream<ILiteral> p_literal );
354 @SuppressWarnings(
"unchecked" )
364 IView remove( @Nonnull
final Stream<ILiteral> p_literal );
382 @SuppressWarnings(
"unchecked" )
383 IView remove( @Nonnull
final IView... p_view );
IPath path()
returns the full path
boolean containsView( @Nonnull final IPath p_path)
view existing check
Stream< ITrigger > trigger()
retruns all trigger of the beliefbase
IAgent<?> update( @Nonnull final IAgent<?> p_agent)
updates all items
Stream< ILiteral > stream( @Nullable final IPath... p_path)
returns stream of literal
boolean empty()
checks if the structure empty
IBeliefbase beliefbase()
returns the beliefbase
view for a beliefbase that creates any access to the underlying data structures
interface of beliefbase definition, that create the trigger events for the agent
String name()
returns only the element name
boolean hasParent()
check if the view has got a parent
Stream< IView > root()
returns a stream to the root node,
IView generate( @Nonnull final IViewGenerator p_generator, @Nonnull final IPath... p_paths)
generates path structure
interface for generating non-existing beliefbases views
IView parent()
returns the parent of the view
interface for equal method on views and beliefbases
Stream< IView > walk( @Nonnull final IPath p_path, @Nullable final IViewGenerator... p_generator)
streams path walking
int size()
returns the size of literals
IView add( @Nonnull final ILiteral... p_literal)
adds a literal in the current structure
IBeliefbase EMPY
empty beliefbase
boolean containsLiteral( @Nonnull final IPath p_path)
checks if a literal exists
IView clear( @Nullable final IPath... p_path)
clears all elements