Ignore:
Timestamp:
Dec 5, 2009, 6:47:14 PM (12 years ago)
Author:
Sören Rinne
Message:
  • new Appender plugin
  • some bugfixing
Location:
trunk/CrypPlugins/BerlekampMassey
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/BerlekampMassey/BerlekampMassey.cs

    r689 r956  
    220220{
    221221    [Author("Soeren Rinne", "soeren.rinne@cryptool.org", "Ruhr-Universitaet Bochum, Chair for System Security", "http://www.trust.rub.de/")]
    222     [PluginInfo(false, "BerlekampMassey", "Berlekamp-Massey-Algorithm", "BerlekampMassey/DetailedDescription/Description.xaml", "BerlekampMassey/Images/icon2.png", "BerlekampMassey/Images/icon2.png", "BerlekampMassey/Images/icon2.png")]
     222    [PluginInfo(false, "Berlekamp-Massey Algorithm", "Berlekamp-Massey Algorithm", "BerlekampMassey/DetailedDescription/Description.xaml", "BerlekampMassey/Images/icon2.png", "BerlekampMassey/Images/icon2.png", "BerlekampMassey/Images/icon2.png")]
    223223    public class BerlekampMassey : IThroughput
    224224    {
     
    243243        {
    244244            this.settings = new BerlekampMasseySettings();
    245             ((BerlekampMasseySettings)(this.settings)).LogMessage += BerlekampMasseyLogMessage;
    246245
    247246            berlekampMasseyPresentation = new BerlekampMasseyPresentation();
     
    263262        public String Input
    264263        {
    265             [MethodImpl(MethodImplOptions.Synchronized)]
    266264            get { return this.input; }
    267             [MethodImpl(MethodImplOptions.Synchronized)]
    268265            set
    269266            {
    270                 this.input = value.ToString();
     267                this.input = value;
    271268                OnPropertyChanged("Input");
    272                 // clean inputOne
    273269            }
    274270        }
     
    277273        public int Output
    278274        {
     275            get
     276            {
     277                return output;
     278            }
     279            set
     280            {   // is readonly
     281            }
     282        }
     283
     284        [PropertyInfo(Direction.OutputData, "Feedback Polynomial C(D)", "", "", false, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
     285        public String PolynomialOutput
     286        {
    279287            [MethodImpl(MethodImplOptions.Synchronized)]
    280288            get
    281289            {
    282                 return output;
     290                return polynomialOutput;
    283291            }
    284292            set
     
    287295        }
    288296
    289         [PropertyInfo(Direction.OutputData, "Feedback Polynomial C(D)", "", "", false, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
    290         public String PolynomialOutput
    291         {
    292             [MethodImpl(MethodImplOptions.Synchronized)]
    293             get
    294             {
    295                 return polynomialOutput;
    296             }
    297             set
    298             {   // is readonly
    299             }
    300         }
    301 
    302297        #endregion
    303298
     
    351346        private void BerlekampMasseyLogMessage(string msg, NotificationLevel logLevel)
    352347        {
    353             /*if (OnGuiLogNotificationOccured != null)
    354             {
    355                 OnGuiLogNotificationOccured(this, new GuiLogEventArgs(msg, this, logLevel));
    356             }*/
    357348        }
    358349
     
    562553            finally
    563554            {
    564                 //ProgressChanged(1, 1);
     555                ProgressChanged(1.0, 1.0);
    565556            }
    566557        }
     
    571562
    572563        public event PluginProgressChangedEventHandler OnPluginProgressChanged;
     564        private void ProgressChanged(double value, double max)
     565        {
     566            EventsHelper.ProgressChanged(OnPluginProgressChanged, this, new PluginProgressEventArgs(value, max));
     567        }
    573568
    574569        private void GuiLogMessage(string message, NotificationLevel logLevel)
  • trunk/CrypPlugins/BerlekampMassey/BerlekampMasseySettings.cs

    r841 r956  
    220220        #endregion
    221221
    222         #region Public Xor specific interface
    223 
    224         /// <summary>
    225         /// We use this delegate to send log messages from the settings class to the Xor plugin
    226         /// </summary>
    227         /// <param name="sender"></param>
    228         /// <param name="msg"></param>
    229         /// <param name="logLevel"></param>
    230         public delegate void XorLogMessage(string msg, NotificationLevel logLevel);
    231 
    232         /// <summary>
    233         /// Fire if a new message has to be shown in the status bar
    234         /// </summary>
    235         public event XorLogMessage LogMessage;
    236        
     222        #region Public BMA specific interface
     223
    237224        /// <summary>
    238225        /// Returns true if some settigns have been changed. This value should be set
    239226        /// externally to false e.g. when a project was saved.
    240227        /// </summary>
    241         [PropertySaveOrder(0)]
    242228        public bool HasChanges
    243229        {
Note: See TracChangeset for help on using the changeset viewer.