-
Giann Karlo Aguirre Samboní authoredGiann Karlo Aguirre Samboní authored
state.cpp 624 B
#include "state.hpp"
State::State(StateType state_type): state_type_(state_type){
++current_id;
id = current_id;
}
State::~State(){}
/* Gets */
int State::get_id(){
return this->id;
}
StateType State::get_state_type(){
// return static_cast<int>(state_type_);
return this->state_type_;
}
vector<Transition*> State::get_transitions(){
return this->transitions_;
}
/* Sets */
void State::set_state_type(StateType state_type){
this->state_type_ = state_type;
}
void State::set_transitions(vector<Transition*> transitions){
this->transitions_ = transitions;
}
int State::current_id = -1;
/* Other methods */