public void outputList() { try { LinkedList <string> list; // Accesses blackboard and gets list (sorted list) list = blackboard.getList(); WriteToFile(list); // Writes list to output file } catch (Exception e) { Console.WriteLine("Exception: " + e.Message); } }
public void sort() { try { LinkedList <string> list; // Accesses blackboard and gets list list = blackboard.getList(); list = Index(list); // List is sorted in alphabetical order // Blackboard accessed and sorted list is stored blackboard.setList(list); } catch (Exception e) { Console.WriteLine("Exception: " + e.Message); } }
public void rotate() { try { LinkedList <string> list; // Accesses blackboard and gets list list = blackboard.getList(); list = Rotate(list); // The KWIC operation is performed on the list // Blackboard is accessed and the new list is stored blackboard.setList(list); } catch (Exception e) { Console.WriteLine("Exception: " + e.Message); } }