This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
2016-05-24 16:03:08 +02:00
|
|
|
#ifndef __PLASP__SAS__INITIAL_STATE_H
|
|
|
|
#define __PLASP__SAS__INITIAL_STATE_H
|
2016-05-22 13:58:05 +02:00
|
|
|
|
2017-05-12 14:17:57 +02:00
|
|
|
#include <tokenize/Tokenizer.h>
|
2017-05-09 15:05:59 +02:00
|
|
|
|
2017-06-22 20:58:31 +02:00
|
|
|
#include <plasp/sas/AssignedVariable.h>
|
|
|
|
|
2016-05-22 13:58:05 +02:00
|
|
|
namespace plasp
|
|
|
|
{
|
|
|
|
namespace sas
|
|
|
|
{
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// InitialState
|
|
|
|
//
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class InitialState
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
using Fact = AssignedVariable;
|
2016-05-22 14:24:38 +02:00
|
|
|
using Facts = AssignedVariables;
|
2016-05-22 13:58:05 +02:00
|
|
|
|
2017-05-12 14:17:57 +02:00
|
|
|
static InitialState fromSAS(tokenize::Tokenizer<> &tokenizer, const Variables &variables);
|
2016-05-22 13:58:05 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
const Facts &facts() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
InitialState() = default;
|
|
|
|
|
|
|
|
Facts m_facts;
|
|
|
|
};
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|