Exemplo n.º 1
0
        public CircularShifter(LineStorage lineStorage)
        {
            this.lineStorage = lineStorage;

            LineIndexLength = lineStorage.GetLineIndexLength();
            CharCoreLength  = lineStorage.GetCharCoreLength();
        }
Exemplo n.º 2
0
 public void Read(List <string> inputList, LineStorage lineStorage)
 {
     for (int i = 0; i < inputList.Count; i++)
     {
         // create new empty line to be filled
         lineStorage.AddLine(inputList[i]);
     }
     lineStorage.SetCharCore();
 }
        public void Execute(List <string> inputList, List <string> noiseWords)
        {
            input       = new Input();
            lineStorage = new LineStorage();
            input.Read(inputList, lineStorage);

            circularShifter = new CircularShifter(lineStorage);
            circularShifter.Shift();

            alphabetizer = new Alphabetizer(circularShifter);
            alphabetizer.Alphabetize();
            LineIndexLength = alphabetizer.LineIndexLength;

            Output output = new Output(alphabetizer, noiseWords);


            KWICOutPut = output.Write();
        }