Normalizing problems’ goal descriptions.

This commit is contained in:
Patrick Lühne 2016-09-02 18:49:30 +02:00
parent 5f406e6b18
commit 23e851ccef
3 changed files with 16 additions and 0 deletions

View File

@ -45,6 +45,8 @@ class Problem
void checkConsistency();
void normalize();
private:
void parseRequirementSection();
void computeDerivedRequirements();

View File

@ -207,6 +207,9 @@ void Description::checkConsistency()
void Description::normalize()
{
m_domain->normalize();
if (m_problem)
m_problem->normalize();
}
////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@ -395,5 +395,16 @@ void Problem::checkConsistency()
////////////////////////////////////////////////////////////////////////////////////////////////////
void Problem::normalize()
{
BOOST_ASSERT(m_goal);
// TODO: normalize objects and initial state
m_goal->normalize();
}
////////////////////////////////////////////////////////////////////////////////////////////////////
}
}