Made unconditional effects a keyword.
This commit is contained in:
parent
e0a15849df
commit
b8a3019e5b
@ -212,7 +212,7 @@ void TranslatorASP::translateActions() const
|
|||||||
|
|
||||||
// TODO: implement conditional effects
|
// TODO: implement conditional effects
|
||||||
if (enumerateEffects)
|
if (enumerateEffects)
|
||||||
m_outputStream << ", " << utils::Keyword("effect") << "(unconditional)";
|
m_outputStream << ", " << utils::Keyword("effect") << "(" << utils::Keyword("unconditional") << ")";
|
||||||
|
|
||||||
m_outputStream << ", ";
|
m_outputStream << ", ";
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ void TranslatorASP::translateActions() const
|
|||||||
operator_.printPredicateAsASP(m_outputStream);
|
operator_.printPredicateAsASP(m_outputStream);
|
||||||
|
|
||||||
if (conditions.empty())
|
if (conditions.empty())
|
||||||
m_outputStream << ", " << utils::Keyword("effect") << "(unconditional), ";
|
m_outputStream << ", " << utils::Keyword("effect") << "(" << utils::Keyword("unconditional") << "), ";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_outputStream << ", " << utils::Keyword("effect") << "(" << utils::Number(std::to_string(currentEffectID)) << "), ";
|
m_outputStream << ", " << utils::Keyword("effect") << "(" << utils::Number(std::to_string(currentEffectID)) << "), ";
|
||||||
@ -286,7 +286,7 @@ void TranslatorASP::translateAxiomRules() const
|
|||||||
m_outputStream
|
m_outputStream
|
||||||
<< utils::Keyword("postcondition") << "("
|
<< utils::Keyword("postcondition") << "("
|
||||||
<< utils::Keyword("axiomRule") << "(" << utils::Number(axiomRuleID) << "), "
|
<< utils::Keyword("axiomRule") << "(" << utils::Number(axiomRuleID) << "), "
|
||||||
<< utils::Keyword("effect") << "(unconditional), ";
|
<< utils::Keyword("effect") << "(" << utils::Keyword("unconditional") << "), ";
|
||||||
postcondition.variable().printNameAsASPPredicate(m_outputStream);
|
postcondition.variable().printNameAsASPPredicate(m_outputStream);
|
||||||
m_outputStream << ", ";
|
m_outputStream << ", ";
|
||||||
postcondition.value().printAsASPPredicate(m_outputStream);
|
postcondition.value().printAsASPPredicate(m_outputStream);
|
||||||
|
Reference in New Issue
Block a user