Package apps.startup
Class TriggerRouteModel
java.lang.Object
jmri.util.startup.AbstractStartupModel
apps.startup.TriggerRouteModel
- All Implemented Interfaces:
StartupModel
Startup model that stores the user name of a
Route so it can be
set at application startup.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRoute()Get the route.Get the user name of the Route.voidPerform the startup action.voidsetUserName(String name) Set the user name of the Route.Methods inherited from class jmri.util.startup.AbstractStartupModel
addException, getExceptions, getName, isEnabled, isValid, setEnabled, setName, toString
-
Constructor Details
-
TriggerRouteModel
public TriggerRouteModel()
-
-
Method Details
-
getUserName
Get the user name of the Route.- Returns:
- the user name
-
setUserName
Set the user name of the Route.- Parameters:
name- user name to use
-
getRoute
Get the route.- Returns:
- the route
-
performAction
Description copied from interface:StartupModelPerform 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 asThrowable.getCause()
-