Added method for checking whether PDDL description contains problem.
This commit is contained in:
parent
6a83147ac0
commit
da71d4947b
@ -28,6 +28,8 @@ class Description
|
||||
|
||||
public:
|
||||
const Domain &domain() const;
|
||||
|
||||
bool containsProblem() const;
|
||||
const Problem &problem() const;
|
||||
|
||||
private:
|
||||
|
@ -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