49 static std::unique_ptr<StateComponent>
create(std::unique_ptr<GateTypeComponent> component,
const std::string& state_identifier,
const std::string& neg_state_identifier);
104 StateComponent(std::unique_ptr<GateTypeComponent> component,
const std::string& state_identifier,
const std::string& neg_state_identifier);
107 std::unique_ptr<GateTypeComponent> m_component =
nullptr;
109 std::string m_state_identifier;
110 std::string m_neg_state_identifier;
const std::string & get_state_identifier() const
void set_state_identifier(const std::string &state_identifier)
ComponentType get_type() const override
static bool is_class_of(const GateTypeComponent *component)
static std::unique_ptr< StateComponent > create(std::unique_ptr< GateTypeComponent > component, const std::string &state_identifier, const std::string &neg_state_identifier)
const std::string & get_neg_state_identifier() const
std::vector< GateTypeComponent * > get_components(const std::function< bool(const GateTypeComponent *)> &filter=nullptr) const override
void set_neg_state_identifier(const std::string &neg_state_identifier)