From fb04b5fb11dd51202c0b8afd51b2bdb9959838ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Fri, 20 May 2016 18:26:42 +0200 Subject: [PATCH] Added accessor for action costs usage. --- include/plasp/sas/Description.h | 1 + src/plasp/sas/Description.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/include/plasp/sas/Description.h b/include/plasp/sas/Description.h index 3100a13..2d84d10 100644 --- a/include/plasp/sas/Description.h +++ b/include/plasp/sas/Description.h @@ -31,6 +31,7 @@ class Description public: Description(); + bool usesActionCosts() const; const std::vector &variables() const; const std::vector &mutexGroups() const; const std::vector &initialStateFacts() const; diff --git a/src/plasp/sas/Description.cpp b/src/plasp/sas/Description.cpp index 9f308b3..41e876a 100644 --- a/src/plasp/sas/Description.cpp +++ b/src/plasp/sas/Description.cpp @@ -58,6 +58,13 @@ Description Description::fromFile(const boost::filesystem::path &path) //////////////////////////////////////////////////////////////////////////////////////////////////// +bool Description::usesActionCosts() const +{ + return m_usesActionCosts; +} + +//////////////////////////////////////////////////////////////////////////////////////////////////// + const std::vector &Description::variables() const { return m_variables;