Treating <none of those> as a normal value in SAS translator output.
This commit is contained in:
parent
bf6300f36b
commit
ac354d512c
@ -46,9 +46,6 @@ void TranslatorASP::translate(std::ostream &ostream) const
|
|||||||
std::for_each(initialStateFacts.cbegin(), initialStateFacts.cend(),
|
std::for_each(initialStateFacts.cbegin(), initialStateFacts.cend(),
|
||||||
[&](const auto &fact)
|
[&](const auto &fact)
|
||||||
{
|
{
|
||||||
if (fact.value() == Value::None)
|
|
||||||
return;
|
|
||||||
|
|
||||||
ostream << "initialState(";
|
ostream << "initialState(";
|
||||||
fact.variable().printNameAsASPPredicate(ostream);
|
fact.variable().printNameAsASPPredicate(ostream);
|
||||||
ostream << ", ";
|
ostream << ", ";
|
||||||
@ -64,9 +61,6 @@ void TranslatorASP::translate(std::ostream &ostream) const
|
|||||||
std::for_each(goalFacts.cbegin(), goalFacts.cend(),
|
std::for_each(goalFacts.cbegin(), goalFacts.cend(),
|
||||||
[&](const auto &fact)
|
[&](const auto &fact)
|
||||||
{
|
{
|
||||||
if (fact.value() == Value::None)
|
|
||||||
return;
|
|
||||||
|
|
||||||
ostream << "goal(";
|
ostream << "goal(";
|
||||||
fact.variable().printNameAsASPPredicate(ostream);
|
fact.variable().printNameAsASPPredicate(ostream);
|
||||||
ostream << ", ";
|
ostream << ", ";
|
||||||
@ -118,9 +112,6 @@ void TranslatorASP::translate(std::ostream &ostream) const
|
|||||||
std::for_each(preconditions.cbegin(), preconditions.cend(),
|
std::for_each(preconditions.cbegin(), preconditions.cend(),
|
||||||
[&](const auto &precondition)
|
[&](const auto &precondition)
|
||||||
{
|
{
|
||||||
if (precondition.value() == Value::None)
|
|
||||||
return;
|
|
||||||
|
|
||||||
ostream << "precondition(";
|
ostream << "precondition(";
|
||||||
operator_.printPredicateAsASP(ostream);
|
operator_.printPredicateAsASP(ostream);
|
||||||
ostream << ", ";
|
ostream << ", ";
|
||||||
|
Reference in New Issue
Block a user