Package jmri.jmrit.display.layoutEditor
Class TransitCreationTool
- java.lang.Object
-
- jmri.jmrit.display.layoutEditor.TransitCreationTool
-
public final class TransitCreationTool extends java.lang.Object
The transit creation tool, is designed to be used by higher level tools to create transits between Beans. The higher level tools would already have a valid knowledge of the track layout and Sections, therefore this tool does little validation of sections being added to the transit.
The tool currently only deals with SignalMasts, that have had logic created and also have a section associated between them.
This file is part of JMRI.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.
-
-
Constructor Summary
Constructors Constructor Description TransitCreationTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNamedBean(NamedBean nb)
void
cancelTransitCreate()
Transit
createTransit()
java.util.List<NamedBean>
getBeans()
boolean
isToolInUse()
-
-
-
Constructor Detail
-
TransitCreationTool
public TransitCreationTool()
-
-
Method Detail
-
addNamedBean
public void addNamedBean(NamedBean nb) throws JmriException
- Throws:
JmriException
-
createTransit
public Transit createTransit() throws JmriException
- Throws:
JmriException
-
cancelTransitCreate
public void cancelTransitCreate()
-
isToolInUse
public boolean isToolInUse()
-
-