|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RouteManager
Interface for obtaining Routes
This doesn't have a "new" method, since Routes are separately implemented, instead of being system-specific.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Method Summary | |
|---|---|
Route |
createNewRoute(String systemName,
String userName)
Method to create a new Route if the route does not exist Returns null if a Route with the same systemName or userName already exists, or if there is trouble creating a new Route. |
void |
deleteRoute(Route r)
Delete Route by removing it from the manager. |
void |
dispose()
Free resources when no longer used. |
Route |
getBySystemName(String s)
|
Route |
getByUserName(String s)
|
Route |
getRoute(String name)
Locate via user name, then system name if needed. |
List |
getSystemNameList()
Get a list of all Route system names. |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, makeSystemName, register, removePropertyChangeListener, systemLetter, typeLetter |
| Method Detail |
|---|
void dispose()
Manager
dispose in interface Manager
Route createNewRoute(String systemName,
String userName)
Route getRoute(String name)
name -
Route getByUserName(String s)
Route getBySystemName(String s)
List getSystemNameList()
getSystemNameList in interface Managervoid deleteRoute(Route r)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||