Skip to content
Snippets Groups Projects
Select Git revision
  • 5e68dd4882e9dc7746e84e81d2f95e946b7626a5
  • master default protected
  • develop
  • feature/electricity_theft_example
  • v2.2.0
  • v2.1.3
  • v2.1.2
  • v2.1.1
  • v2.1.0
  • v2.0.0
  • v1.0.0
11 results

CMakeLists.txt

Blame
  • 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