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);
            }
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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);
            }
        }