Package jmri.jmrit.ctc
Class Fleeting
- java.lang.Object
-
- jmri.jmrit.ctc.Fleeting
-
public class Fleeting extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFleetingEnabled()
Routine you can call to find out if fleeting is enabled.void
removeAllListeners()
Stub routine for completeness, we can be consistent in higher level code with this defined (even if it does nothing).
-
-
-
Constructor Detail
-
Fleeting
public Fleeting(NBHSensor fleetingToggleInternalSensor, boolean defaultFleetingEnabled)
Class to manage the Fleeting sensor (if defined). Provides reasonable return values if none defined.- Parameters:
fleetingToggleInternalSensor
- The defined internal fleeting sensor name (ex: "IS:FLEETING")defaultFleetingEnabled
- The users choice as to whether fleeting is initially enabled or not.
-
-
Method Detail
-
removeAllListeners
public void removeAllListeners()
Stub routine for completeness, we can be consistent in higher level code with this defined (even if it does nothing).
-
isFleetingEnabled
public boolean isFleetingEnabled()
Routine you can call to find out if fleeting is enabled. Provides reasonable defaults if things don't exist.- Returns:
- True if fleeting is enabled, else false.
-
-