Hiding action cost output if feature not required.
This commit is contained in:
parent
05058c149e
commit
bc5f8edb67
@ -170,9 +170,12 @@ void TranslatorASP::translate(std::ostream &ostream) const
|
|||||||
ostream << ")." << std::endl;
|
ostream << ")." << std::endl;
|
||||||
});
|
});
|
||||||
|
|
||||||
ostream << "costs(";
|
if (usesActionCosts)
|
||||||
operator_.printPredicateAsASP(ostream);
|
{
|
||||||
ostream << ", " << operator_.costs() << ")." << std::endl;
|
ostream << "costs(";
|
||||||
|
operator_.printPredicateAsASP(ostream);
|
||||||
|
ostream << ", " << operator_.costs() << ")." << std::endl;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ostream << std::endl;
|
ostream << std::endl;
|
||||||
|
Reference in New Issue
Block a user