Ignore:
Timestamp:
Jun 18, 2010, 5:18:05 PM (11 years ago)
Author:
Paul Lelgemann
Message:

o Refactored distributed KeySearcher: updated directory structure and variable names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/KeySearcherSettings.cs

    r1643 r1674  
    11using System;
    2 using System.Collections.Generic;
    3 using System.Linq;
    42using System.Numerics;
    5 using System.Text;
    63using Cryptool.PluginBase;
    74using System.ComponentModel;
    85using System.Collections.ObjectModel;
     6using KeySearcher.KeyPattern;
    97
    108namespace KeySearcher
     
    1210    public class KeySearcherSettings : ISettings
    1311    {
    14         private KeySearcher keysearcher;
     12        private readonly KeySearcher keysearcher;
    1513        private int coresUsed;
    1614        private const string GroupPeerToPeer = "Peer-to-Peer network";
     
    2422            CoresUsed = Environment.ProcessorCount - 1;
    2523
    26             distributedJobIdentifier = Guid.NewGuid().ToString();
    2724            chunkSize = 21;
    2825        }
     
    10299        }
    103100
    104         private string distributedJobIdentifier;
    105         [TaskPane("Job identifier", "Arbitrary description, that allows other peers to join this calculation.", GroupPeerToPeer, 2, false, DisplayLevel.Professional,
    106             ControlType.TextBox)]
    107         public string DistributedJobIdentifier
    108         {
    109             get { return distributedJobIdentifier; }
    110             set
    111             {
    112                 if (value != distributedJobIdentifier)
    113                 {
    114                     distributedJobIdentifier = value;
    115                     OnPropertyChanged("DistributedJobIdentifier");
    116                     HasChanges = true;
    117                 }
    118             }
    119         }
    120 
    121101        private int chunkSize;
    122102        [TaskPane("Chunk size", "Amount of keys, that will be calculated by one peer at a time. This value is the exponent of the power of two used for the chunk size.", GroupPeerToPeer, 3, false, DisplayLevel.Professional,
     
    147127                }
    148128
    149                 var keyPattern = new KeyPattern(keysearcher.ControlMaster.getKeyPattern());
     129                var keyPattern = new KeyPattern.KeyPattern(keysearcher.ControlMaster.getKeyPattern());
    150130                keyPattern.WildcardKey = key;
    151131                var keyPatternPool = new KeyPatternPool(keyPattern, new BigInteger(Math.Pow(2, ChunkSize)));
Note: See TracChangeset for help on using the changeset viewer.