Added method for checking whether PDDL description contains problem.
This commit is contained in:
@@ -113,6 +113,13 @@ const Domain &Description::domain() const
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool Description::containsProblem() const
|
||||
{
|
||||
return m_problem.get() != nullptr;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
const Problem &Description::problem() const
|
||||
{
|
||||
BOOST_ASSERT(m_problem);
|
||||
|
Reference in New Issue
Block a user