SMACC2
smacc2_sm_reference_library
sm_pubsub_1
include
sm_pubsub_1
superstates
ss_superstate_2.hpp
Go to the documentation of this file.
1
// Copyright 2021 RobosoftAI Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
namespace
sm_pubsub_1
16
{
17
namespace
SS2
18
{
19
namespace
sm_pubsub_1
20
{
21
namespace
inner_states
22
{
23
// FORWARD DECLARATIONS OF ALL INNER STATES
24
class
StiState1;
25
class
StiState2;
26
class
StiState3;
27
}
// namespace inner_states
28
}
// namespace sm_pubsub_1
29
30
using namespace
sm_pubsub_1::inner_states
;
31
32
// STATE DECLARATION
33
struct
Ss2
:
smacc2::SmaccState
<Ss2, MsRun, StiState1>
34
{
35
public
:
36
using
SmaccState::SmaccState;
37
38
// TRANSITION TABLE
39
typedef
mpl::list<
40
41
Transition<EvLoopEnd<StiState1>,
StState4
>
42
43
>
reactions
;
44
45
// STATE VARIABLES
46
static
constexpr
int
total_iterations
() {
return
5; }
47
int
iteration_count
= 0;
48
49
// STATE FUNCTIONS
50
static
void
staticConfigure
() {}
51
52
void
runtimeConfigure
() {}
53
};
// namespace SS4
54
55
// forward declaration for the superstate
56
using
SS
=
SS2::Ss2
;
57
58
#include <
sm_pubsub_1/states/inner_states/sti_state_1.hpp
>
59
#include <
sm_pubsub_1/states/inner_states/sti_state_2.hpp
>
60
#include <
sm_pubsub_1/states/inner_states/sti_state_3.hpp
>
61
62
}
// namespace SS2
63
}
// namespace sm_pubsub_1
smacc2::SmaccState
Definition:
smacc_state_base.hpp:41
sm_pubsub_1::inner_states
Definition:
sti_state_1.hpp:18
sm_pubsub_1
Definition:
cl_subscriber.hpp:20
sti_state_1.hpp
sti_state_2.hpp
sti_state_3.hpp
sm_pubsub_1::SS2::Ss2
Definition:
ss_superstate_2.hpp:34
sm_pubsub_1::SS2::Ss2::iteration_count
int iteration_count
Definition:
ss_superstate_2.hpp:47
sm_pubsub_1::SS2::Ss2::reactions
mpl::list< Transition< EvLoopEnd< StiState1 >, StState4 > > reactions
Definition:
ss_superstate_2.hpp:43
sm_pubsub_1::SS2::Ss2::total_iterations
static constexpr int total_iterations()
Definition:
ss_superstate_2.hpp:46
sm_pubsub_1::SS2::Ss2::staticConfigure
static void staticConfigure()
Definition:
ss_superstate_2.hpp:50
sm_pubsub_1::SS2::Ss2::runtimeConfigure
void runtimeConfigure()
Definition:
ss_superstate_2.hpp:52
sm_pubsub_1::StState4
Definition:
st_state_4.hpp:19
Generated by
1.9.4