Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/22/09 12:06:29 (16 years ago)
Author:
vdorfer
Message:

Created API documentation for HeuristicLab.Operators.Metaprogramming and HeuristicLab.Logging namespace and changed a comment in HeuristicLab.Core namespace(#331)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Logging/Linechart.cs

    r2 r1167  
    2828
    2929namespace HeuristicLab.Logging {
     30  /// <summary>
     31  /// Class to represent a Linechart.
     32  /// </summary>
    3033  public class Linechart : ItemBase, IVisualizationItem {
    3134    private IntData myNumberOfLines;
     35    /// <summary>
     36    /// Gets or sets the number of lines of the current instance.
     37    /// </summary>
     38    /// <remarks>Calls <see cref="OnNumberOfLinesChanged"/> in the setter.</remarks>
    3239    public int NumberOfLines {
    3340      get { return myNumberOfLines.Data; }
     
    4047    }
    4148    private ItemList myValues;
     49    /// <summary>
     50    /// Gets or sets the values of the current instance.
     51    /// </summary>
     52    /// <remarks>Calls <see cref="OnValuesChanged"/> in the setter.</remarks>
    4253    public ItemList Values {
    4354      get { return myValues; }
     
    5162
    5263
     64    /// <summary>
     65    /// Initializes a new instance of <see cref="Linechart"/>.
     66    /// </summary>
    5367    public Linechart() {
    5468      myNumberOfLines = new IntData(0);
    5569    }
     70    /// <summary>
     71    /// Initializes a new instance of <see cref="Linechart"/> with the given <paramref name="numberOfLines"/>
     72    /// and the given <paramref name="values"/>.
     73    /// </summary>
     74    /// <param name="numberOfLines">The number of lines with which to initialize the current instance.</param>
     75    /// <param name="values">The values with which to initialize the current instance.</param>
    5676    public Linechart(int numberOfLines, ItemList values) {
    5777      myNumberOfLines = new IntData(numberOfLines);
     
    5979    }
    6080
    61 
     81    /// <summary>
     82    /// Clones the current instance (deep clone).
     83    /// </summary>
     84    /// <remarks>Deep clone through <see cref="Auxiliary.Clone"/> method of helper class
     85    /// <see cref="Auxiliary"/>.</remarks>
     86    /// <param name="clonedObjects">Dictionary of all already clone objects. (Needed to avoid cycles.)</param>
     87    /// <returns>The cloned object as <see cref="Linechart"/>.</returns>
    6288    public override object Clone(IDictionary<Guid, object> clonedObjects) {
    6389      Linechart clone = (Linechart)base.Clone(clonedObjects);
     
    6793    }
    6894
     95    /// <summary>
     96    /// Creates an instance of <see cref="LinechartView"/> to represent the current instance visually.
     97    /// </summary>
     98    /// <returns>The created view as <see cref="LinechartView"/>.</returns>
    6999    public override IView CreateView() {
    70100      return new LinechartView(this);
    71101    }
    72102
     103    /// <summary>
     104    /// Occurs when the number of lines has been changed.
     105    /// </summary>
    73106    public event EventHandler NumberOfLinesChanged;
     107    /// <summary>
     108    /// Fires a new <c>NumberOfLinesChanged</c> event.
     109    /// </summary>
    74110    protected virtual void OnNumberOfLinesChanged() {
    75111      if (NumberOfLinesChanged != null)
    76112        NumberOfLinesChanged(this, new EventArgs());
    77113    }
     114    /// <summary>
     115    /// Occurs when the values have been changed.
     116    /// </summary>
    78117    public event EventHandler ValuesChanged;
     118    /// <summary>
     119    /// Fires a new <c>ValuesChanged</c> event.
     120    /// </summary>
    79121    protected virtual void OnValuesChanged() {
    80122      if (ValuesChanged != null)
     
    83125
    84126    #region Persistence Methods
     127    /// <summary>
     128    /// Saves the current instance as <see cref="XmlNode"/> in the specified <paramref name="document"/>.
     129    /// </summary>
     130    /// <remarks>The number of lines and the values are saved as child nodes with tag
     131    /// name <c>NumberOfLines</c> and <c>Values</c> respectively.</remarks>
     132    /// <param name="name">The (tag)name of the <see cref="XmlNode"/>.</param>
     133    /// <param name="document">The <see cref="XmlDocument"/> where to save the data.</param>
     134    /// <param name="persistedObjects">The dictionary of all already persisted objects.
     135    /// (Needed to avoid cycles.)</param>
     136    /// <returns>The saved <see cref="XmlNode"/>.</returns>
    85137    public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) {
    86138      XmlNode node = base.GetXmlNode(name, document, persistedObjects);
     
    89141      return node;
    90142    }
     143    /// <summary>
     144    /// Loads the persisted item from the specified <paramref name="node"/>.
     145    /// </summary>
     146    /// <remarks>Has to be saved in a special way, see <see cref="GetXmlNode"/> for further information.</remarks>
     147    /// <param name="node">The <see cref="XmlNode"/> where the Linechart is saved.</param>
     148    /// <param name="restoredObjects">The dictionary of all already restored objects.
     149    /// (Needed to avoid cycles.)</param>
    91150    public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) {
    92151      base.Populate(node, restoredObjects);
Note: See TracChangeset for help on using the changeset viewer.