/**
 * File: KeyCount.java
 * @author A.Kurd <alan.kurd@trincoll.edu>
 * 
 * Description: Implements a Java 1.1 version of a GUI tool for calculating the letter frequencies of the encrypted message.
 * Credits: This program is modelled after the frequency test of the CryptoToolJ program by Ralph Morelli.
 *
 * Copyright: This program is in the public domain. You can do whatever you want with
 *  it as long as I get credit for my work and as long as you offer your changes to me
 *  so I can possible add them to the "official" version.
 */
package hcrypto.analyzer;

import hcrypto.cipher.*;
import java.awt.*;

public class KeyCount{

    public  final int MAX_CHARS = 128;      // Possibly all ASCII characters
    private  int alphabetRange = Alphabet.RANGE_ascii;    
    public  String message;
    private  Alphabet alphabet = null;
    public FrequencyRecord key[] = new FrequencyRecord[MAX_CHARS];    
    public FrequencyTable freqTable;
 
    public  void KeyCount(FrequencyTable ft) {
        freqTable = ft;
    } //KeyCount

    public void Arrange(){
    
        key = freqTable.frequencies;
    }

}//class


 
   