Beispiel #1
0
    //////////////////
    // Constructors //
    //////////////////

    /// <summary>
    /// Creates a new index. Dependency free
    /// </summary>
    /// <param name="name">Name of the index</param>
    /// <param name="description">Description of the index</param>
    /// <param name="value">Independent value of the index</param>
    public Index(string name, string description, float value)
    {
        Name        = name;
        Description = description;
        Value       = value; // Must be done aftter dependencies is initiallized, otherwise it will throw a exception
        ID          = idCounter++;
        FlowChart.AddIndex(this);
    }