Class AutoTrainAction

  • public class AutoTrainAction
    extends java.lang.Object
    This class sets up and executes TransitSectionAction's specified for Sections traversed by one automatically running train. It is an extension to AutoActiveTrain that handles special actions while its train is running automatically.

    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.