48 lines
979 B
C++
48 lines
979 B
C++
#ifndef __PLASP__SAS__MUTEX_GROUP_H
|
|
#define __PLASP__SAS__MUTEX_GROUP_H
|
|
|
|
#include <vector>
|
|
|
|
#include <plasp/sas/AssignedVariable.h>
|
|
#include <plasp/utils/Parser.h>
|
|
|
|
namespace plasp
|
|
{
|
|
namespace sas
|
|
{
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// MutexGroup
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
class MutexGroup;
|
|
using MutexGroups = std::vector<MutexGroup>;
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
class MutexGroup
|
|
{
|
|
public:
|
|
using Fact = AssignedVariable;
|
|
using Facts = AssignedVariables;
|
|
|
|
static MutexGroup fromSAS(utils::Parser &parser, const Variables &variables);
|
|
|
|
public:
|
|
const Facts &facts() const;
|
|
|
|
private:
|
|
MutexGroup() = default;
|
|
|
|
Facts m_facts;
|
|
};
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|