Class AutoTrainAction
This class is linked via its parent AutoActiveTrain object.
When an AutoActiveTrain enters a Section, it passes the TransitSection of the entered Section to this class.
Similarly when an AutoActiveTrain leaves a Section, it passes the TransitSection of the just vacated Section to this class.
This file is part of JMRI.
JMRI is open source 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) classA runnable to monitor whether the autoActiveTrain is moving or stopped.(package private) classA runnable to monitor the autoActiveTrain speed.(package private) classA runnable that implements delayed execution of a TransitSectionAction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidThis method is called to clear any actions that have not been completedvoidprotected voidvoidhandleSensorChange(String sName) protected booleanisDelayedStart(float distance, float speed) protected void
-
Constructor Details
-
AutoTrainAction
Create an AutoTrainAction.- Parameters:
aat- the associated train
-
-
Method Details
-
isDelayedStart
-
addTransitSection
-
handleSensorChange
-
handleBlockStateChange
-
removeTransitSection
-
clearRemainingActions
This method is called to clear any actions that have not been completed -
cancelDoneSensor
-
executeAction
-