Program Listing for File totalordertransformer.h
↰ Return to documentation for file (src/popf/totalordertransformer.h)
/************************************************************************
* Copyright 2010, Strathclyde Planning Group,
* Department of Computer and Information Sciences,
* University of Strathclyde, Glasgow, UK
* http://planning.cis.strath.ac.uk/
*
* Andrew Coles, Amanda Coles - Code for POPF
* Maria Fox, Richard Howey and Derek Long - Code from VAL
* Stephen Cresswell - PDDL Parser
*
* This file is part of the planner POPF.
*
* POPF is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* POPF is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with POPF. If not, see <http://www.gnu.org/licenses/>.
*
************************************************************************/
#ifndef TOTALORDERTRANSFORMER_H
#define TOTALORDERTRANSFORMER_H
#include "minimalstate.h"
#include "partialordertransformer.h"
namespace Planner
{
class TemporalConstraints;
class TotalOrderTransformer : public StateTransformer
{
protected:
PartialOrderTransformer t;
public:
TotalOrderTransformer() {
}
virtual ~TotalOrderTransformer() {
}
virtual int stepThatMustPrecedeUnfinishedActions(const TemporalConstraints * const cons) const;
virtual double latestTimePointOfActionsStartedHere(const int & tilIndexApplied) const;
virtual TemporalConstraints * cloneTemporalConstraints(const TemporalConstraints * const, const int extendBy = 0);
virtual TemporalConstraints * emptyTemporalConstraints();
virtual MinimalState & applyAction(MinimalState & s, const ActionSegment & a, const bool & inPlace, const double & minDur, const double & maxDur);
};
}
#endif // TOTALORDERTRANSFORMER_H