/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* This file is part of guh. *
* *
* Guh is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, version 2 of the License. *
* *
* Guh is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with guh. If not, see . *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef RULE_H
#define RULE_H
#include "types/state.h"
#include "types/action.h"
#include "types/eventdescriptor.h"
#include "stateevaluator.h"
#include
class Rule
{
public:
Rule();
Rule(const RuleId &id, const QList &eventDescriptorList, const StateEvaluator &stateEvaluator, const QList &actions);
RuleId id() const;
QList eventDescriptors() const;
StateEvaluator stateEvaluator() const;
QList actions() const;
private:
RuleId m_id;
QList m_eventDescriptors;
StateEvaluator m_stateEvaluator;
QList m_actions;
};
#endif // RULE_H