Package apps.startup

Class TriggerRouteModel

All Implemented Interfaces:
StartupModel

Startup model that stores the user name of a Route so it can be set at application startup.
  • Constructor Details

  • Method Details

    • getUserName

      public String getUserName()
      Get the user name of the Route.
      Returns:
      the user name
    • setUserName

      public void setUserName(String name)
      Set the user name of the Route.
      Parameters:
      name - user name to use
    • getRoute

      public Route getRoute()
      Get the route.
      Returns:
      the route
    • performAction

      public void performAction() throws JmriException
      Description copied from interface: StartupModel
      Perform the startup action. The caller is responsible to ensure that this startup model is enabled before calling this method.
      Throws:
      JmriException - if there is an exception thrown initializing the startup item; the original exception should be available as Throwable.getCause()