Wrapped translated SAS action definitions for usability in meta encodings.

This commit is contained in:
Patrick Lühne 2016-08-13 01:40:31 +02:00
parent daf68d24ab
commit 569b3d0c97

View File

@ -136,9 +136,9 @@ void TranslatorASP::translateActions() const
std::for_each(operators.cbegin(), operators.cend(),
[&](const auto &operator_)
{
m_outputStream << std::endl;
m_outputStream << std::endl << utils::Keyword("action") << "(";
operator_.printPredicateAsASP(m_outputStream);
m_outputStream << "." << std::endl;
m_outputStream << ")." << std::endl;
const auto &preconditions = operator_.preconditions();