Changed output format of axiom rules for consistency.
This commit is contained in:
parent
169c5ae8e9
commit
ef57f27c6a
@ -272,7 +272,9 @@ void TranslatorASP::translateAxiomRules() const
|
||||
std::for_each(conditions.cbegin(), conditions.cend(),
|
||||
[&](const auto &condition)
|
||||
{
|
||||
m_outputStream << utils::Keyword("precondition") << "(" << utils::Keyword("axiomRule") << "(" << utils::Number(axiomRuleID) << "), ";
|
||||
m_outputStream
|
||||
<< utils::Keyword("precondition") << "("
|
||||
<< utils::Keyword("axiomRule") << "(" << utils::Number(axiomRuleID) << "), ";
|
||||
condition.variable().printNameAsASPPredicate(m_outputStream);
|
||||
m_outputStream << ", ";
|
||||
condition.value().printAsASPPredicate(m_outputStream);
|
||||
@ -281,7 +283,10 @@ void TranslatorASP::translateAxiomRules() const
|
||||
|
||||
const auto &postcondition = axiomRule.postcondition();
|
||||
|
||||
m_outputStream << utils::Keyword("postcondition") << "(" << utils::Keyword("axiomRule") << "(" << utils::Number(axiomRuleID) << "), ";
|
||||
m_outputStream
|
||||
<< utils::Keyword("postcondition") << "("
|
||||
<< utils::Keyword("axiomRule") << "(" << utils::Number(axiomRuleID) << "), "
|
||||
<< utils::Keyword("effect") << "(unconditional), ";
|
||||
postcondition.variable().printNameAsASPPredicate(m_outputStream);
|
||||
m_outputStream << ", ";
|
||||
postcondition.value().printAsASPPredicate(m_outputStream);
|
||||
|
Reference in New Issue
Block a user