/*
 ***************************************************************************
  File: JessCipher.java
  Author: Carolyn Rucci, Trinity '02
  Adviser: R.Morelli
  Auxiliary Files:
    -  cipher_expert.clp -- Expert System Rules
    -  cipher_expert.jar -- Jess and HcryptoJ class files
    -  testfiles/*.txt   -- Encrypted test files
									     
  Description:  This file is used by CipherExpert to pass information
  into and out of the ExpertSystem, cipher_expert.clp. It stores
  the name of the cipher, initially "unknown", and a shift value,
  both of which are set by the expert system.

**************************************************************************/

import java.beans.*;

public class JessCipher {
    private String cipherName;
    private int shift;

    /**
     * Default constructor(does NOT work)
     */
    public JessCipher() { }

    /**
     * Constructor takes the cipherName as argument
     */
    public JessCipher(String str) {
	cipherName = str;
    }

    /**
     * Returns the length of the cipherName
     */
    public int getLength()  {
	return cipherName.length();
    }

    /**
     * Returns the cipherName itself
     */
    public String getCipher()  {
	return cipherName;
    }

    /**
     * Resets the cipherName to a new value
     */
    public void setCipher(String str) {
  	cipherName = str;
    }

    /**
     * Returns the shift value
     */
    public int getShift()  {
	return shift;
    }

    /**
     * Resets the shift value
     */
    public void setShift(int num)  {
	shift = num;
    }
}
