Reformatting
This commit is contained in:
58
ctx_aut.hh
58
ctx_aut.hh
@@ -28,32 +28,38 @@ class RctSys;
|
||||
class CtxAut
|
||||
{
|
||||
friend class SymRS;
|
||||
|
||||
public:
|
||||
CtxAut(Options *opts, RctSys *parent_rctsys);
|
||||
bool hasState(std::string name);
|
||||
void addState(std::string stateName);
|
||||
void setInitState(std::string stateName);
|
||||
State getInitState(void);
|
||||
State getStateID(std::string name);
|
||||
std::string getStateName(State state_id);
|
||||
void printAutomaton(void);
|
||||
void showStates(void);
|
||||
void addTransition(std::string srcStateName, std::string dstStateName);
|
||||
void showTransitions(void);
|
||||
void pushContextEntity(Entity entity_id);
|
||||
void setOptions(Options *opts) { this->opts = opts; }
|
||||
size_t statesCount(void) { return states_ids.size(); }
|
||||
|
||||
private:
|
||||
RctSys *parent_rctsys;
|
||||
Options *opts;
|
||||
StatesById states_ids;
|
||||
StatesByName states_names;
|
||||
State init_state_id;
|
||||
bool init_state_defined;
|
||||
Entities tmpEntities;
|
||||
CtxAutTransitions transitions;
|
||||
|
||||
public:
|
||||
CtxAut(Options *opts, RctSys *parent_rctsys);
|
||||
bool hasState(std::string name);
|
||||
void addState(std::string stateName);
|
||||
void setInitState(std::string stateName);
|
||||
State getInitState(void);
|
||||
State getStateID(std::string name);
|
||||
std::string getStateName(State state_id);
|
||||
void printAutomaton(void);
|
||||
void showStates(void);
|
||||
void addTransition(std::string srcStateName, std::string dstStateName);
|
||||
void showTransitions(void);
|
||||
void pushContextEntity(Entity entity_id);
|
||||
void setOptions(Options *opts)
|
||||
{
|
||||
this->opts = opts;
|
||||
}
|
||||
size_t statesCount(void)
|
||||
{
|
||||
return states_ids.size();
|
||||
}
|
||||
|
||||
private:
|
||||
RctSys *parent_rctsys;
|
||||
Options *opts;
|
||||
StatesById states_ids;
|
||||
StatesByName states_names;
|
||||
State init_state_id;
|
||||
bool init_state_defined;
|
||||
Entities tmpEntities;
|
||||
CtxAutTransitions transitions;
|
||||
};
|
||||
|
||||
#endif /* RS_CTX_AUT_HH */
|
||||
|
||||
Reference in New Issue
Block a user