Ejemplo n.º 1
0
 //constructor in which all the member variables are initialised
 public Executive()
 {
     commandLineParser = new CommandLineParser();
     fileManager       = new FileMngr();
     analyzer          = new Analyzer();
     display           = new Display();
     xmlDislay         = new XmlDisplay();
 }
Ejemplo n.º 2
0
            //Test Stub
            /// <summary>
            ///   If the package is run as stand alone application
            /// then add the default values for the member variables                 
            /// </summary>
            /// <param name="args"></param>
            public static void Main(String[] args)
            {
                XmlDisplay xmlDisplayForTestStub = new XmlDisplay();
                Repository rep = Repository.getInstance();

                try
                {
                    if (rep.locations.Count == 0)
                    {
                        Console.WriteLine("The repository is empty. Nothing to display");
                    }

                    xmlDisplayForTestStub.generateRelationshipsDetails();
                }
                catch
                {
                    Console.WriteLine("Error occured during xml generation. Check the input parameters");
                }
            }
Ejemplo n.º 3
0
            //Test Stub
            public static void Main(String[] args)
            {
                XmlDisplay xmlDisplayForTestStub = new XmlDisplay();
                Repository rep = Repository.getInstance();
                /* If the package is run as stand alone application
                  * then add the default values for the member variables
                 */
                try
                {
                    if (rep.locations.Count == 0)
                    {
                        Console.WriteLine("The repository is empty. Nothing to display");
                    }

                    xmlDisplayForTestStub.generateXmlTypesDetails();
                    xmlDisplayForTestStub.generateXmlComplexityDetails();
                    xmlDisplayForTestStub.generateRelationshipsDetails();
                }
                catch
                {
                    Console.WriteLine("Error occured during xml generation. Check the input parameters");
                }
            }