2016-06-10 17:40:32 +02:00
|
|
|
#ifndef __PLASP__PDDL__TRANSLATOR_ASP_H
|
|
|
|
#define __PLASP__PDDL__TRANSLATOR_ASP_H
|
|
|
|
|
|
|
|
#include <plasp/pddl/Description.h>
|
|
|
|
|
|
|
|
#include <iosfwd>
|
|
|
|
|
|
|
|
namespace plasp
|
|
|
|
{
|
|
|
|
namespace pddl
|
|
|
|
{
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// TranslatorASP
|
|
|
|
//
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TranslatorASP
|
|
|
|
{
|
|
|
|
public:
|
2016-11-29 06:03:05 +01:00
|
|
|
explicit TranslatorASP(Description &description, output::ColorStream &outputStream);
|
2016-06-10 17:40:32 +02:00
|
|
|
|
2016-06-12 22:31:18 +02:00
|
|
|
void translate() const;
|
2016-06-10 17:40:32 +02:00
|
|
|
|
2016-06-12 22:19:55 +02:00
|
|
|
private:
|
2016-06-12 22:31:18 +02:00
|
|
|
void translateDomain() const;
|
2016-06-12 22:39:04 +02:00
|
|
|
void translateTypes() const;
|
|
|
|
void translatePredicates() const;
|
2016-12-07 01:56:06 +01:00
|
|
|
void translateDerivedPredicates() const;
|
2016-06-12 22:47:39 +02:00
|
|
|
void translateActions() const;
|
2016-06-12 22:39:04 +02:00
|
|
|
|
2016-06-12 22:31:18 +02:00
|
|
|
void translateProblem() const;
|
2016-06-13 03:19:24 +02:00
|
|
|
void translateInitialState() const;
|
|
|
|
void translateGoal() const;
|
2016-06-14 16:38:41 +02:00
|
|
|
void translateConstants(const std::string &heading, const expressions::Constants &constants) const;
|
2016-06-12 22:55:35 +02:00
|
|
|
|
2016-08-18 00:24:10 +02:00
|
|
|
Description &m_description;
|
2016-11-29 06:03:05 +01:00
|
|
|
output::ColorStream &m_outputStream;
|
2016-06-10 17:40:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|