24 package org.lightjason.agentspeak.generator;
26 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
34 import javax.annotation.Nonnull;
35 import javax.annotation.Nullable;
36 import java.io.InputStream;
37 import java.util.Objects;
39 import java.util.stream.IntStream;
40 import java.util.stream.Stream;
46 @SuppressFBWarnings(
"URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" )
80 m_configuration = p_configuration;
85 public final Stream<IPlanBundle>
generatemultiple(
final int p_number, @Nullable
final Object... p_data )
87 return IntStream.range( 0, p_number )
89 .mapToObj( i -> this.generatesingle( p_data ) )
90 .filter( Objects::nonNull );
default planbundle parser
final IASTVisitorPlanBundle parse(final InputStream p_stream)
final IPlanBundleConfiguration m_configuration
configuration
generator interface to generate plan bundles
external action interface
IBasePlanBundleGenerator( @Nonnull final InputStream p_stream, @Nonnull final Set< IAction > p_actions)
ctor
Set< IRule > rules()
returns the rules / principles
Set< IPlan > plans()
get a multimap with event-plan matching
plan bundle configuration
Set< ILiteral > initialbeliefs()
returns initial beliefs
final Stream< IPlanBundle > generatemultiple(final int p_number, @Nullable final Object... p_data)
visitor interface of the abstract-syntax-tree (AST) for a plan bundle
IBasePlanBundleGenerator( @Nonnull final IPlanBundleConfiguration p_configuration)
ctor
default plan bundle configuration