ShowHelp() public méthode

public ShowHelp ( ) : void
Résultat void
Exemple #1
0
    public static void Main(string[] args)
    {
      Parameters p = new Parameters("Graph", "Graph - Brunet Network Modeler.");
      p.Parse(args);
      if(p.Help) {
        p.ShowHelp();
        return;
      }
      if(p.ErrorMessage != string.Empty) {
        Console.WriteLine(p.ErrorMessage);
        p.ShowHelp();
        return;
      }

      Console.WriteLine("Creating a graph with base size: {0}, near connections: {1}, shortcuts {2}",
          p.Size, p.Near, p.Shortcuts);
      Graph graph = new Graph(p.Size, p.Near, p.Shortcuts, p.Seed, p.LatencyMap);
      Console.WriteLine("Done populating graph...");
      graph.Crawl();
      graph.AllToAll();
      graph.BroadcastAverage();
      if(p.Outfile != string.Empty) {
        Console.WriteLine("Saving dot file to: " + p.Outfile);
        graph.WriteGraphFile(p.Outfile);
      }
    }
Exemple #2
0
        public static void Main(string[] args)
        {
            Parameters p = new Parameters("Relay", "Relay - Brunet Network Modeler for Relay.");

            p.Parse(args);

            if (p.Help)
            {
                p.ShowHelp();
                return;
            }
            if (p.ErrorMessage != string.Empty)
            {
                Console.WriteLine(p.ErrorMessage);
                p.ShowHelp();
                return;
            }

            Console.WriteLine("Creating a graph with base size: {0}, near " +
                              "connections: {1}, shortcuts {2}", p.Size, p.Near, p.Shortcuts);

            Relay graph = new Relay(p.Size, p.Near, p.Shortcuts, p.Seed, p.LatencyMap);

            Console.WriteLine("Done populating graph...");
            graph.CalculateTwoHopDelays();

            if (p.Outfile != string.Empty)
            {
                Console.WriteLine("Saving dot file to: " + p.Outfile);
                graph.WriteGraphFile(p.Outfile);
            }
        }
Exemple #3
0
        public static void Main(string[] args)
        {
            Parameters p = new Parameters("Graph", "Graph - Brunet Network Modeler.");

            p.Parse(args);
            if (p.Help)
            {
                p.ShowHelp();
                return;
            }
            if (p.ErrorMessage != string.Empty)
            {
                Console.WriteLine(p.ErrorMessage);
                p.ShowHelp();
                return;
            }

            Console.WriteLine("Creating a graph with base size: {0}, near connections: {1}, shortcuts {2}",
                              p.Size, p.Near, p.Shortcuts);
            Graph graph = new Graph(p.Size, p.Near, p.Shortcuts, p.Seed, p.LatencyMap);

            Console.WriteLine("Done populating graph...");
            graph.Crawl();
            graph.AllToAll();
            graph.BroadcastAverage();
            if (p.Outfile != string.Empty)
            {
                Console.WriteLine("Saving dot file to: " + p.Outfile);
                graph.WriteGraphFile(p.Outfile);
            }
        }
Exemple #4
0
    public static void Main(string[] args)
    {
      Parameters p = new Parameters("Relay", "Relay - Brunet Network Modeler for Relay.");
      p.Parse(args);

      if(p.Help) {
        p.ShowHelp();
        return;
      }
      if(p.ErrorMessage != string.Empty) {
        Console.WriteLine(p.ErrorMessage);
        p.ShowHelp();
        return;
      }

      Console.WriteLine("Creating a graph with base size: {0}, near " + 
          "connections: {1}, shortcuts {2}", p.Size, p.Near, p.Shortcuts);

      Relay graph = new Relay(p.Size, p.Near, p.Shortcuts, p.Seed, p.LatencyMap);
      Console.WriteLine("Done populating graph...");
      graph.CalculateTwoHopDelays();

      if(p.Outfile != string.Empty) {
        Console.WriteLine("Saving dot file to: " + p.Outfile);
        graph.WriteGraphFile(p.Outfile);
      }
    }