Select Git revision
state.hpp 638 B
#ifndef STATE_HPP
#define STATE_HPP
#include "state_type.hpp"
#include "transition.hpp"
using namespace std;
class Transition;
class State
{
private:
int id;
static int current_id;
StateType state_type_;
vector<Transition*> transitions_;
public:
State(StateType state_type = static_cast<StateType>(0));
~State();
/* Gets */
int get_id();
StateType get_state_type();
vector<Transition*> get_transitions();
/* Sets */
void set_state_type(StateType state_type);
void set_transitions(vector<Transition*> transitions);
/* Other methods */
void add_transition(Transition *new_transition);
};
#endif