Changeset 802


Ignore:
Timestamp:
Oct 30, 2009, 1:34:07 PM (12 years ago)
Author:
nolte
Message:

Comments added (Description for BigNumber coming next)

Location:
trunk/CrypPlugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/BigNumber/BigNumberInput.cs

    r616 r802  
    4040
    4141        private BigInteger numberOutput = null;
     42        /// <summary>
     43        /// The output is defined
     44        /// </summary>
    4245        [PropertyInfo(Direction.OutputData, "Number Output", "Number Output", "", DisplayLevel.Beginner)]
    4346        public BigInteger NumberOutput
     
    99102        {
    100103            BigInteger bi;
     104            //The input from the taskpane is convertet to a BigNumber and is send to the output.
    101105            try
    102106            {
  • trunk/CrypPlugins/BigNumber/BigNumberOperation.cs

    r753 r802  
    2929
    3030        #region private variable
    31 
     31        //The variables are defined
    3232        private BigInteger input1 = null;
    3333        private BigInteger input2 = null;
  • trunk/CrypPlugins/Substring/Substring.cs

    r718 r802  
    2626using System.ComponentModel;
    2727
    28 /*
    29  * Note:
    30  * Enhancement #64 is counterproductive for this plugin, as the settings are set to 0 on connection removal.
    31  * Enhancement #81 (open issue currently) would be probably more useful instead.
    32  */
    3328
    3429namespace Cryptool.Plugins.Substring
     
    4136        #region IPlugin Members
    4237
     38        //Variables initialized
    4339        private SubstringSettings settings = new SubstringSettings();
    4440        private String inputString = "";
     
    7672        public void Execute()
    7773        {
     74            //checking if input is set
    7875            if (inputString != null)
    7976            {
    8077                ProgressChanged(0.5, 1.0);
     78                //checking if the chosen parameters for startposition and length are still in the bound of the given string
    8179                if ((settings.IntegerStartValue <= inputString.Length) & ((settings.IntegerStartValue + settings.IntegerLengthValue) <= inputString.Length))
    8280                {
     81                    //checking if the user set the length value to 0...if the length = 0 the complete string starting from the startposition will be send
    8382                    if (settings.IntegerLengthValue != 0)
    8483                    {
     
    128127
    129128        #region SubstringInOut
    130 
     129        /// <summary>
     130        /// The inputs are defined
     131        /// </summary>
    131132        [PropertyInfo(Direction.InputData, "String Input", "Input your String here", "", true, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
    132133        public String InputString
     
    173174        }
    174175
     176        /// <summary>
     177        /// The output is defined
     178        /// </summary>
    175179        [PropertyInfo(Direction.OutputData, "String Output", "Your Substring will be send here", "", DisplayLevel.Beginner)]
    176180        public String OutputString
  • trunk/CrypPlugins/Substring/SubstringSettings.cs

    r513 r802  
    3131
    3232        private int integerLengthValue;
     33        /// <summary>
     34        /// Taskpane-input for the length value
     35        /// </summary>
    3336        [TaskPane("Length value", "Integer value for the length.", null, 0, false, DisplayLevel.Beginner, ControlType.NumericUpDown, ValidationType.RangeInteger, 0, int.MaxValue)]
    3437        public int IntegerLengthValue
     
    4750
    4851        private int integerStartValue;
     52        /// <summary>
     53        /// Taskpane-input for the startposition
     54        /// </summary>
    4955        [TaskPane("Start value", "Integer value to start from.", null, 0, false, DisplayLevel.Beginner, ControlType.NumericUpDown, ValidationType.RangeInteger, 0, int.MaxValue)]
    5056        public int IntegerStartValue
Note: See TracChangeset for help on using the changeset viewer.