LightJason - AgentSpeak(L++)
IInspector.java
Go to the documentation of this file.
1 /*
2  * @cond LICENSE
3  * ######################################################################################
4  * # LGPL License #
5  * # #
6  * # This file is part of the LightJason AgentSpeak(L++) #
7  * # Copyright (c) 2015-19, LightJason (info@lightjason.org) #
8  * # This program is free software: you can redistribute it and/or modify #
9  * # it under the terms of the GNU Lesser General Public License as #
10  * # published by the Free Software Foundation, either version 3 of the #
11  * # License, or (at your option) any later version. #
12  * # #
13  * # This program is distributed in the hope that it will be useful, #
14  * # but WITHOUT ANY WARRANTY; without even the implied warranty of #
15  * # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
16  * # GNU Lesser General Public License for more details. #
17  * # #
18  * # You should have received a copy of the GNU Lesser General Public License #
19  * # along with this program. If not, see http://www.gnu.org/licenses/ #
20  * ######################################################################################
21  * @endcond
22  */
23 
24 package org.lightjason.agentspeak.agent;
25 
29 
30 import javax.annotation.Nonnegative;
31 import javax.annotation.Nonnull;
32 import java.util.Map;
33 import java.util.stream.Stream;
34 
35 
39 public interface IInspector
40 {
45  {
46  @Override
47  public final void inspectsleeping( @Nonnegative final long p_value )
48  {}
49 
50  @Override
51  public final void inspectcycletime( @Nonnegative final long p_value )
52  {}
53 
54  @Override
55  public final void inspectbelief( @Nonnull final Stream<ILiteral> p_value )
56  {}
57 
58  @Override
59  public final void inspectplans( @Nonnull final Stream<IPlanStatistic> p_value )
60  {}
61 
62  @Override
63  public final void inspectrules( @Nonnull final Stream<IRule> p_value )
64  {}
65 
66  @Override
67  public final void inspectrunningplans( @Nonnull final Stream<ILiteral> p_value )
68  {}
69 
70  @Override
71  public final void inspectstorage( @Nonnull final Stream<? extends Map.Entry<String, ?>> p_value )
72  {}
73  };
74 
75 
81  void inspectsleeping( @Nonnegative final long p_value );
82 
88  void inspectcycletime( @Nonnegative final long p_value );
89 
95  void inspectbelief( final Stream<ILiteral> p_value );
96 
102  void inspectplans( @Nonnull final Stream<IPlanStatistic> p_value );
103 
109  void inspectrules( @Nonnull final Stream<IRule> p_value );
110 
116  void inspectrunningplans( @Nonnull final Stream<ILiteral> p_value );
117 
123  void inspectstorage( @Nonnull final Stream<? extends Map.Entry<String, ?>> p_value );
124 
125 }
void inspectrunningplans( @Nonnull final Stream< ILiteral > p_value)
inspect running plans
void inspectstorage( @Nonnull final Stream<? extends Map.Entry< String, ?>> p_value)
inspect storage values
void inspectcycletime( @Nonnegative final long p_value)
inspect cycle value
void inspectrules( @Nonnull final Stream< IRule > p_value)
inspect rules
void inspectsleeping( @Nonnegative final long p_value)
inspect sleeping value
void inspectplans( @Nonnull final Stream< IPlanStatistic > p_value)
inspect plans
void inspectbelief(final Stream< ILiteral > p_value)
inspect beliefs
IInspector EMPTY
empty insprector
Definition: IInspector.java:44
inspector interface to read agent internal data
Definition: IInspector.java:39