source: trunk/CrypPluginBase/Control/IControlCost.cs @ 761

Last change on this file since 761 was 761, checked in by kopal, 12 years ago

renamed "blocksize" to "bytesToUse"

File size: 888 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace Cryptool.PluginBase.Control
7{
8
9  /// <summary>
10  /// Which operator has to be used to relate two values of the cost function
11  /// </summary>
12  public enum RelationOperator
13  {
14      LessThen, LargerThen
15  }
16
17  public interface IControlCost : IControl
18  {   
19      /// <summary>
20      /// Returns the relation operator which has to be used to relate two values of the cost function
21      /// </summary>
22      /// <returns>RelationOperator</returns>
23      RelationOperator getRelationOperator();
24     
25      /// <summary>
26      /// Calculate a value for the given text
27      /// </summary>
28      /// <param name="text">Text to calculate</param>
29      /// <returns>cost</returns>
30      double calculateCost(byte[] text);
31
32      int getBytesToUse();
33  }
34}
Note: See TracBrowser for help on using the repository browser.