FSM Library - C++ version
OFSMTableRow.h
1 /*
2  * Copyright. GaĆ«l Dottel, Christoph Hilken, and Jan Peleska 2016 - 2021
3  *
4  * Licensed under the EUPL V.1.1
5  */
6 #ifndef FSM_FSM_OFSMTABLEROW_H_
7 #define FSM_FSM_OFSMTABLEROW_H_
8 
9 #include <memory>
10 #include <vector>
11 
12 #include "fsm/Int2IntMap.h"
13 #include "fsm/typedef.inc"
14 
19 {
20 private:
24  int maxInput;
25 
29  int maxOutput;
30 
34  std::vector<std::vector<int>> matrix;
35 public:
41  OFSMTableRow(const int maxInput, const int maxOutput);
42 
50  void set(const int i, const int j, const int postState);
51 
58  int get(const int i, const int j) const;
59 
66  bool ioEquals(const std::shared_ptr<OFSMTableRow> r) const;
67 
73  bool classEquals(const S2CMap & s2c, const std::shared_ptr<OFSMTableRow> r);
74 };
75 #endif //FSM_FSM_OFSMTABLEROW_H_
void set(const int i, const int j, const int postState)
Definition: OFSMTableRow.cpp:18
OFSMTableRow(const int maxInput, const int maxOutput)
Definition: OFSMTableRow.cpp:8
bool classEquals(const S2CMap &s2c, const std::shared_ptr< OFSMTableRow > r)
Definition: OFSMTableRow.cpp:43
Definition: OFSMTableRow.h:18
bool ioEquals(const std::shared_ptr< OFSMTableRow > r) const
Definition: OFSMTableRow.cpp:28