Class Main


  • public final class Main
    extends java.lang.Object
    This is the main-class for this application.
    A mandatory argument for execution of the main(String...) method is the path to the configuration file. See CommandLineOptions for information on available command line options.
    Each configuration list item represents an instance of the AgentConfiguration. The constructor AgentConfiguration(String, java.io.File, java.io.File, String, int, String) lists all available properties, which may or may not be required.
    An entry may look like the following:
     
         - name: "example1"
           device: "src/test/resources/configuration/cisco.yaml"
           walk: "src/test/resources/configuration/example.txt"
           ip: "127.0.0.1"
           port: 10000
     
     
    You can find more example within the test resources of this project.
    The configuration YAML file defines a list of all agents that should be simulated by the Main.
    • Constructor Summary

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String... args)
      The application entry-point.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • main

        public static void main​(java.lang.String... args)
        The application entry-point.
        All available command-line arguments are documented in the CommandLineOptions class.
        If illegal command-line options were specified for execution, a usage help message will be printed out on the System.err stream and the application will terminate. Otherwise the configuration will be read and used for execution.
        Parameters:
        args - the command-line arguments