using System;
using System.Collections.Generic;
using System.Text;

namespace FormulaEditor
{
    /// <summary>
    /// Operation which returns an object
    /// </summary>
    public interface IObjectOperation
    {

        /// <summary>
        /// Arity of this operation
        /// </summary>
        int Arity
        {
            get;
        }

        /// <summary>
        /// Calculates result of this operation
        /// </summary>
        object this[object[] x]
        {
            get;
        }

        /// <summary>
        /// Return type
        /// </summary>
        object ReturnType
        {
            get;
        }

        /// <summary>
        /// The "is powered" sign
        /// </summary>
        bool IsPowered
        {
            get;
        }
    }
}
