//
// Copyright (c) 2009 Froduald Kabanza and the Université de Sherbrooke.
// Use of this software is permitted for non-commercial research purposes, and
// it may be copied or applied only for that use. All copies must include this
// copyright message.
// 
// This is a research prototype that has not gone through intensive tests and
// is delivered as is. It may still contain bugs. Froduald Kabanza and the
// Université de Sherbrooke disclaim any responsibility for damage that may be
// caused by using it.
//
// Please note that some files were inspired in part by the PDDL4J library:
// http://www.math-info.univ-paris5.fr/~pellier/software/software.php 
//
// Implementation: Simon Chamberland
// Project Manager: Froduald Kabanza
//

#ifndef _DEFINED_FORMULA_APPLICATION_H
#define _DEFINED_FORMULA_APPLICATION_H

#include "DefinedFormula.h"
#include "../FormulaApplication.h"

namespace planning
{
  /// <summary>
  /// A defined formula application is an application of a defined formula.
  /// When evaluated, a defined formula application performs a (possibly complex) evaluation
  /// of its body.
  /// </summary>
  class DefinedFormulaApplication : public FormulaApplication
  {
  public:
   /// <summary>
    /// Creates a new defined formula application of a specified defined formula with a 
    /// given list of arguments.
    /// </summary>
    /// <param name="definedFormula">The defined formula to instantiate.</param>
    /// <param name="arguments">The arguments of the new defined formula application.</param>
    DefinedFormulaApplication(const DefinedFormula* definedFormula, const ITerm** arguments)
      : FormulaApplication(definedFormula, arguments)
    {
    }
  };
}

#endif