Added transitive deduction of object types to PDDL translation.

This commit is contained in:
Patrick Lühne 2016-06-13 03:22:04 +02:00
parent 23f6f9b26b
commit e07672ffe6

View File

@ -194,6 +194,7 @@ void TranslatorASP::translateTypes() const
[&](const auto &parentType) [&](const auto &parentType)
{ {
m_ostream << "inherits(type(" << type->name() << "), type(" << parentType->name() << "))." << std::endl; m_ostream << "inherits(type(" << type->name() << "), type(" << parentType->name() << "))." << std::endl;
m_ostream << "hasType(X, type(" << parentType->name() << ")) :- hasType(X, type(" << type->name() << "))." << std::endl;
}); });
}); });
} }