Changed keyword for conditions of conditional effects.
This commit is contained in:
parent
00c3140f3b
commit
4037b339e4
@ -174,7 +174,8 @@ void TranslatorASP::translateActions() const
|
|||||||
std::for_each(conditions.cbegin(), conditions.cend(),
|
std::for_each(conditions.cbegin(), conditions.cend(),
|
||||||
[&](const auto &condition)
|
[&](const auto &condition)
|
||||||
{
|
{
|
||||||
m_outputStream << utils::Keyword("effectCondition") << "(";
|
// Conditions of conditional effects
|
||||||
|
m_outputStream << utils::Keyword("precondition") << "(";
|
||||||
operator_.printPredicateAsASP(m_outputStream);
|
operator_.printPredicateAsASP(m_outputStream);
|
||||||
m_outputStream << ", " << utils::Keyword("effect") << "(" << utils::Number(std::to_string(currentEffectID)) << "), ";
|
m_outputStream << ", " << utils::Keyword("effect") << "(" << utils::Number(std::to_string(currentEffectID)) << "), ";
|
||||||
condition.variable().printNameAsASPPredicate(m_outputStream);
|
condition.variable().printNameAsASPPredicate(m_outputStream);
|
||||||
|
Reference in New Issue
Block a user