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;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (usesActionCosts)
|
||||||
|
{
|
||||||
ostream << "costs(";
|
ostream << "costs(";
|
||||||
operator_.printPredicateAsASP(ostream);
|
operator_.printPredicateAsASP(ostream);
|
||||||
ostream << ", " << operator_.costs() << ")." << std::endl;
|
ostream << ", " << operator_.costs() << ")." << std::endl;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ostream << std::endl;
|
ostream << std::endl;
|
||||||
|
Reference in New Issue
Block a user