Package apps.startup
Class TriggerRouteModel
- java.lang.Object
-
- jmri.util.startup.AbstractStartupModel
-
- apps.startup.TriggerRouteModel
-
- All Implemented Interfaces:
StartupModel
public class TriggerRouteModel extends AbstractStartupModel
Startup model that stores the user name of aRouteso it can be set at application startup.
-
-
Constructor Summary
Constructors Constructor Description TriggerRouteModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoutegetRoute()Get the route.java.lang.StringgetUserName()Get the user name of the Route.voidperformAction()Perform the startup action.voidsetUserName(java.lang.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 Detail
-
TriggerRouteModel
public TriggerRouteModel()
-
-
Method Detail
-
getUserName
public java.lang.String getUserName()
Get the user name of the Route.- Returns:
- the user name
-
setUserName
public void setUserName(java.lang.String name)
Set the user name of the Route.- Parameters:
name- user name to use
-
performAction
public void performAction() throws JmriException
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()
-
-