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
|
||||
if (enumerateEffects)
|
||||
m_outputStream << ", " << utils::Keyword("effect") << "(unconditional)";
|
||||
m_outputStream << ", " << utils::Keyword("effect") << "(" << utils::Keyword("unconditional") << ")";
|
||||
|
||||
m_outputStream << ", ";
|
||||
|
||||
|
@ -188,7 +188,7 @@ void TranslatorASP::translateActions() const
|
||||
operator_.printPredicateAsASP(m_outputStream);
|
||||
|
||||
if (conditions.empty())
|
||||
m_outputStream << ", " << utils::Keyword("effect") << "(unconditional), ";
|
||||
m_outputStream << ", " << utils::Keyword("effect") << "(" << utils::Keyword("unconditional") << "), ";
|
||||
else
|
||||
{
|
||||
m_outputStream << ", " << utils::Keyword("effect") << "(" << utils::Number(std::to_string(currentEffectID)) << "), ";
|
||||
@ -286,7 +286,7 @@ void TranslatorASP::translateAxiomRules() const
|
||||
m_outputStream
|
||||
<< utils::Keyword("postcondition") << "("
|
||||
<< utils::Keyword("axiomRule") << "(" << utils::Number(axiomRuleID) << "), "
|
||||
<< utils::Keyword("effect") << "(unconditional), ";
|
||||
<< utils::Keyword("effect") << "(" << utils::Keyword("unconditional") << "), ";
|
||||
postcondition.variable().printNameAsASPPredicate(m_outputStream);
|
||||
m_outputStream << ", ";
|
||||
postcondition.value().printAsASPPredicate(m_outputStream);
|
||||
|
Reference in New Issue
Block a user