Added transitive deduction of object types to PDDL translation.
This commit is contained in:
parent
23f6f9b26b
commit
e07672ffe6
@ -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;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user