Hiding action cost output if feature not required.

This commit is contained in:
Patrick Lühne 2016-05-23 17:15:22 +02:00
parent 05058c149e
commit bc5f8edb67

View File

@ -170,9 +170,12 @@ void TranslatorASP::translate(std::ostream &ostream) const
ostream << ")." << std::endl;
});
ostream << "costs(";
operator_.printPredicateAsASP(ostream);
ostream << ", " << operator_.costs() << ")." << std::endl;
if (usesActionCosts)
{
ostream << "costs(";
operator_.printPredicateAsASP(ostream);
ostream << ", " << operator_.costs() << ")." << std::endl;
}
});
ostream << std::endl;