Package jmri.implementation
Class DefaultConditionalExecute
- java.lang.Object
-
- jmri.implementation.DefaultConditionalExecute
-
public class DefaultConditionalExecute extends java.lang.Object
Helper class for DefaultConditional that executes the actions of a DefaultConditional.
-
-
Constructor Summary
Constructors Constructor Description DefaultConditionalExecute(DefaultConditional conditional)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
allocateWarrantRoute(ConditionalAction action, Warrant w, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
autoRunWarrant(ConditionalAction action, Warrant w, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
cancelSensorTimers(ConditionalAction action, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList, java.lang.String devName)
(package private) void
cancelTurnoutTimers(ConditionalAction action, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList, java.lang.String devName)
(package private) void
clearBlockError(ConditionalAction action, OBlock b, java.util.List<java.lang.String> errorList)
(package private) void
clearSignalHeld(ConditionalAction action, SignalHead h, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
clearSignalMastHeld(ConditionalAction action, SignalMast f, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
controlAudio(ConditionalAction action, java.lang.String devName)
(package private) void
controlTrain(ConditionalAction action, Warrant w, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList, java.lang.String devName)
(package private) void
copyMemory(ConditionalAction action, Memory mFrom, Memory mTo, java.lang.String actionStr, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
deallocateBlock(ConditionalAction action, OBlock b, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
deallocateWarrantRoute(ConditionalAction action, Warrant w, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
delayedSensor(ConditionalAction action, Reference<java.lang.Integer> actionCount, DefaultConditional.TimeSensor timeSensor, int delay, boolean reset, java.lang.String devName)
(package private) void
delayedTurnout(ConditionalAction action, Reference<java.lang.Integer> actionCount, DefaultConditional.TimeTurnout timeTurnout, boolean reset, java.lang.String devName)
(package private) void
disableLogix(ConditionalAction action, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList, java.lang.String devName)
(package private) void
enableLogix(ConditionalAction action, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList, java.lang.String devName)
(package private) void
getBlockTrainName(ConditionalAction action, OBlock b, Memory mTo, java.lang.String actionStr, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
getBlockWarrant(ConditionalAction action, OBlock b, Memory mTo, java.lang.String actionStr, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
getTrainLocation(ConditionalAction action, Warrant w, Memory mTo, java.lang.String actionStr, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
jythonCommand(ConditionalAction action, java.lang.String actionStr, Reference<java.lang.Integer> actionCount)
(package private) void
lockTurnout(ConditionalAction action, Turnout tl, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
manualRunWarrant(ConditionalAction action, Warrant w, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
playSound(ConditionalAction action, java.lang.String actionStr, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
runScript(ConditionalAction action, java.lang.String actionStr, Reference<java.lang.Integer> actionCount)
(package private) void
setBlockError(ConditionalAction action, OBlock b, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setBlockInService(ConditionalAction action, OBlock b, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setBlockOutOfService(ConditionalAction action, OBlock b, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setBlockValue(ConditionalAction action, OBlock b, java.lang.String actionStr, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setFastClockTime(ConditionalAction action, Reference<java.lang.Integer> actionCount)
(package private) void
setLight(ConditionalAction action, Light lgt, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setLightIntensity(ConditionalAction action, Light lgt, int intensity, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setLightTransitionTime(ConditionalAction action, Light lgt, int time, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setMemory(ConditionalAction action, Memory m, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setNXPairDisabled(ConditionalAction action, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList, java.lang.String devName)
(package private) void
setNXPairEnabled(ConditionalAction action, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList, java.lang.String devName)
(package private) void
setNXPairSegment(ConditionalAction action, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList, java.lang.String devName)
(package private) void
setRouteTurnouts(ConditionalAction action, Warrant w, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setSensor(ConditionalAction action, Sensor sn, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList, java.lang.String devName)
(package private) void
setSignalAppearance(ConditionalAction action, SignalHead h, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setSignalDark(ConditionalAction action, SignalHead h, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setSignalHeld(ConditionalAction action, SignalHead h, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setSignalLit(ConditionalAction action, SignalHead h, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setSignalMastAspect(ConditionalAction action, SignalMast f, java.lang.String actionStr, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setSignalMastDark(ConditionalAction action, SignalMast f, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setSignalMastHeld(ConditionalAction action, SignalMast f, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setSignalMastLit(ConditionalAction action, SignalMast f, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setTrainId(ConditionalAction action, Warrant w, java.lang.String actionStr, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setTrainName(ConditionalAction action, Warrant w, java.lang.String actionStr, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
setTurnout(ConditionalAction action, Turnout t, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
(package private) void
startFastClock(Reference<java.lang.Integer> actionCount)
(package private) void
stopFastClock(Reference<java.lang.Integer> actionCount)
(package private) void
triggerRoute(ConditionalAction action, Route r, Reference<java.lang.Integer> actionCount, java.util.List<java.lang.String> errorList)
-
-
-
Constructor Detail
-
DefaultConditionalExecute
DefaultConditionalExecute(@Nonnull DefaultConditional conditional)
-
-
Method Detail
-
setTurnout
void setTurnout(@Nonnull ConditionalAction action, Turnout t, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
delayedTurnout
void delayedTurnout(@Nonnull ConditionalAction action, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull DefaultConditional.TimeTurnout timeTurnout, boolean reset, java.lang.String devName)
-
cancelTurnoutTimers
void cancelTurnoutTimers(@Nonnull ConditionalAction action, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList, java.lang.String devName)
-
lockTurnout
void lockTurnout(@Nonnull ConditionalAction action, Turnout tl, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setSignalAppearance
void setSignalAppearance(@Nonnull ConditionalAction action, SignalHead h, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setSignalHeld
void setSignalHeld(@Nonnull ConditionalAction action, SignalHead h, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
clearSignalHeld
void clearSignalHeld(@Nonnull ConditionalAction action, SignalHead h, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setSignalDark
void setSignalDark(@Nonnull ConditionalAction action, SignalHead h, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setSignalLit
void setSignalLit(@Nonnull ConditionalAction action, SignalHead h, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
triggerRoute
void triggerRoute(@Nonnull ConditionalAction action, Route r, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setSensor
void setSensor(@Nonnull ConditionalAction action, Sensor sn, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList, java.lang.String devName)
-
delayedSensor
void delayedSensor(@Nonnull ConditionalAction action, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull DefaultConditional.TimeSensor timeSensor, int delay, boolean reset, java.lang.String devName)
-
cancelSensorTimers
void cancelSensorTimers(@Nonnull ConditionalAction action, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList, java.lang.String devName)
-
setLight
void setLight(@Nonnull ConditionalAction action, Light lgt, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setLightIntensity
void setLightIntensity(@Nonnull ConditionalAction action, Light lgt, int intensity, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setLightTransitionTime
void setLightTransitionTime(@Nonnull ConditionalAction action, Light lgt, int time, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setMemory
void setMemory(@Nonnull ConditionalAction action, Memory m, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
copyMemory
void copyMemory(@Nonnull ConditionalAction action, Memory mFrom, Memory mTo, java.lang.String actionStr, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
enableLogix
void enableLogix(@Nonnull ConditionalAction action, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList, java.lang.String devName)
-
disableLogix
void disableLogix(@Nonnull ConditionalAction action, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList, java.lang.String devName)
-
playSound
void playSound(@Nonnull ConditionalAction action, java.lang.String actionStr, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
runScript
void runScript(@Nonnull ConditionalAction action, java.lang.String actionStr, @Nonnull Reference<java.lang.Integer> actionCount)
-
setFastClockTime
void setFastClockTime(@Nonnull ConditionalAction action, @Nonnull Reference<java.lang.Integer> actionCount)
-
startFastClock
void startFastClock(@Nonnull Reference<java.lang.Integer> actionCount)
-
stopFastClock
void stopFastClock(@Nonnull Reference<java.lang.Integer> actionCount)
-
controlAudio
void controlAudio(@Nonnull ConditionalAction action, java.lang.String devName)
-
jythonCommand
void jythonCommand(@Nonnull ConditionalAction action, java.lang.String actionStr, @Nonnull Reference<java.lang.Integer> actionCount)
-
allocateWarrantRoute
void allocateWarrantRoute(@Nonnull ConditionalAction action, Warrant w, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
deallocateWarrantRoute
void deallocateWarrantRoute(@Nonnull ConditionalAction action, Warrant w, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setRouteTurnouts
void setRouteTurnouts(@Nonnull ConditionalAction action, Warrant w, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setTrainId
void setTrainId(@Nonnull ConditionalAction action, Warrant w, java.lang.String actionStr, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setTrainName
void setTrainName(@Nonnull ConditionalAction action, Warrant w, java.lang.String actionStr, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
getTrainLocation
void getTrainLocation(@Nonnull ConditionalAction action, Warrant w, Memory mTo, java.lang.String actionStr, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
autoRunWarrant
void autoRunWarrant(@Nonnull ConditionalAction action, Warrant w, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
manualRunWarrant
void manualRunWarrant(@Nonnull ConditionalAction action, Warrant w, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
controlTrain
void controlTrain(@Nonnull ConditionalAction action, Warrant w, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList, java.lang.String devName)
-
setSignalMastAspect
void setSignalMastAspect(@Nonnull ConditionalAction action, SignalMast f, java.lang.String actionStr, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setSignalMastHeld
void setSignalMastHeld(@Nonnull ConditionalAction action, SignalMast f, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
clearSignalMastHeld
void clearSignalMastHeld(@Nonnull ConditionalAction action, SignalMast f, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setSignalMastDark
void setSignalMastDark(@Nonnull ConditionalAction action, SignalMast f, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setSignalMastLit
void setSignalMastLit(@Nonnull ConditionalAction action, SignalMast f, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setBlockValue
void setBlockValue(@Nonnull ConditionalAction action, OBlock b, java.lang.String actionStr, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setBlockError
void setBlockError(@Nonnull ConditionalAction action, OBlock b, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
clearBlockError
void clearBlockError(@Nonnull ConditionalAction action, OBlock b, @Nonnull java.util.List<java.lang.String> errorList)
-
deallocateBlock
void deallocateBlock(@Nonnull ConditionalAction action, OBlock b, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setBlockOutOfService
void setBlockOutOfService(@Nonnull ConditionalAction action, OBlock b, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setBlockInService
void setBlockInService(@Nonnull ConditionalAction action, OBlock b, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
getBlockTrainName
void getBlockTrainName(@Nonnull ConditionalAction action, OBlock b, Memory mTo, java.lang.String actionStr, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
getBlockWarrant
void getBlockWarrant(@Nonnull ConditionalAction action, OBlock b, Memory mTo, java.lang.String actionStr, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList)
-
setNXPairEnabled
void setNXPairEnabled(@Nonnull ConditionalAction action, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList, java.lang.String devName)
-
setNXPairDisabled
void setNXPairDisabled(@Nonnull ConditionalAction action, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList, java.lang.String devName)
-
setNXPairSegment
void setNXPairSegment(@Nonnull ConditionalAction action, @Nonnull Reference<java.lang.Integer> actionCount, @Nonnull java.util.List<java.lang.String> errorList, java.lang.String devName)
-
-