Interface Conditional
-
- All Superinterfaces:
java.lang.Comparable<NamedBean>
,NamedBean
,PropertyChangeProvider
- All Known Implementing Classes:
DefaultConditional
,SensorGroupConditional
public interface Conditional extends NamedBean
A Conditional is layout control logic, consisting of a logical expression and an action.A Conditional does not exist on its own, but is part of a Logix. The system name of each Conditional is set automatically when the conditional is created. It begins with the system name of its parent Logix. There is no Conditional Table. Conditionals are created, editted, and deleted via the Logix Table.
A Conditional has a "state", which changes depending on whether its logical expression calculates to TRUE or FALSE. The "state" may not be changed by the user. It only changes in response to changes in the "state variables" used in its logical expression.
Listeners may be set to monitor a change in the state of a conditional.
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Conditional.Action
static class
Conditional.AntecedentOperator
static class
Conditional.ItemType
static class
Conditional.Operator
static class
Conditional.State
static class
Conditional.Type
-
Nested classes/interfaces inherited from interface jmri.NamedBean
NamedBean.BadNameException, NamedBean.BadSystemNameException, NamedBean.BadUserNameException, NamedBean.DisplayOptions, NamedBean.DuplicateSystemNameException
-
-
Field Summary
-
Fields inherited from interface jmri.NamedBean
DISPLAY_NAME_FORMAT, INCONSISTENT, PROPERTY_STATE, QUOTED_NAME_FORMAT, UNKNOWN
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Request a call-back when the bound KnownState property changes.int
calculate(boolean enabled, java.beans.PropertyChangeEvent evt)
Calculate this Conditional, triggering either or both actions if the user specified conditions are met, and the Logix is enabled.void
cancelSensorTimer(java.lang.String sname)
Stop a sensor timer if one is actively delaying setting of the specified sensorvoid
cancelTurnoutTimer(java.lang.String sname)
Stop a turnout timer if one is actively delaying setting of the specified turnoutvoid
dispose()
Remove references to and from this object, so that it can eventually be garbage-collected.java.lang.String
getAntecedentExpression()
Get antecedent (boolean expression) of Conditionaljava.util.List<ConditionalAction>
getCopyOfActions()
Make deep clone of actions.java.util.List<ConditionalVariable>
getCopyOfStateVariables()
Make deep clone of variables.Conditional.AntecedentOperator
getLogicType()
Get type of operators in the antecedent statementint
getState()
State of the Conditional is returned.boolean
getTriggerOnChange()
void
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a request for a call-back when a bound property changes.void
setAction(java.util.List<ConditionalAction> arrayList)
Set list of actionsvoid
setLogicType(Conditional.AntecedentOperator type, java.lang.String antecedent)
set the logic type (all AND's all OR's or mixed AND's and OR's set the antecedent expression - should be a well formed boolean statement with parenthesis indicating the order of evaluationvoid
setStateVariables(java.util.List<ConditionalVariable> arrayList)
Set State Variables for this Conditional.void
setTriggerOnChange(boolean trigger)
Set policy for execution of action listjava.lang.String
validateAntecedent(java.lang.String ant, java.util.List<ConditionalVariable> variableList)
Check that an antecedent is well formed.-
Methods inherited from interface jmri.NamedBean
addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, compareTo, describeState, getBeanType, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListenersByReference, getPropertyKeys, getSystemName, getUsageReport, getUserName, removeProperty, setComment, setProperty, setState, setUserName, toString, updateListenerRef, vetoableChange
-
Methods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener
-
-
-
-
Field Detail
-
rbx
static final java.util.ResourceBundle rbx
-
rbxWarrant
static final java.util.ResourceBundle rbxWarrant
-
FALSE
static final int FALSE
- See Also:
- Constant Field Values
-
TRUE
static final int TRUE
- See Also:
- Constant Field Values
-
ALL_AND
static final int ALL_AND
- See Also:
- Constant Field Values
-
ALL_OR
static final int ALL_OR
- See Also:
- Constant Field Values
-
MIXED
static final int MIXED
- See Also:
- Constant Field Values
-
OPERATOR_AND
static final int OPERATOR_AND
- See Also:
- Constant Field Values
-
OPERATOR_NONE
static final int OPERATOR_NONE
- See Also:
- Constant Field Values
-
OPERATOR_OR
static final int OPERATOR_OR
- See Also:
- Constant Field Values
-
TYPE_ERROR
static final int TYPE_ERROR
- See Also:
- Constant Field Values
-
TYPE_NONE
static final int TYPE_NONE
- See Also:
- Constant Field Values
-
TYPE_SENSOR_ACTIVE
static final int TYPE_SENSOR_ACTIVE
- See Also:
- Constant Field Values
-
TYPE_SENSOR_INACTIVE
static final int TYPE_SENSOR_INACTIVE
- See Also:
- Constant Field Values
-
TYPE_TURNOUT_THROWN
static final int TYPE_TURNOUT_THROWN
- See Also:
- Constant Field Values
-
TYPE_TURNOUT_CLOSED
static final int TYPE_TURNOUT_CLOSED
- See Also:
- Constant Field Values
-
TYPE_CONDITIONAL_TRUE
static final int TYPE_CONDITIONAL_TRUE
- See Also:
- Constant Field Values
-
TYPE_CONDITIONAL_FALSE
static final int TYPE_CONDITIONAL_FALSE
- See Also:
- Constant Field Values
-
TYPE_LIGHT_ON
static final int TYPE_LIGHT_ON
- See Also:
- Constant Field Values
-
TYPE_LIGHT_OFF
static final int TYPE_LIGHT_OFF
- See Also:
- Constant Field Values
-
TYPE_MEMORY_EQUALS
static final int TYPE_MEMORY_EQUALS
- See Also:
- Constant Field Values
-
TYPE_FAST_CLOCK_RANGE
static final int TYPE_FAST_CLOCK_RANGE
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_RED
static final int TYPE_SIGNAL_HEAD_RED
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_YELLOW
static final int TYPE_SIGNAL_HEAD_YELLOW
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_GREEN
static final int TYPE_SIGNAL_HEAD_GREEN
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_DARK
static final int TYPE_SIGNAL_HEAD_DARK
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_FLASHRED
static final int TYPE_SIGNAL_HEAD_FLASHRED
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_FLASHYELLOW
static final int TYPE_SIGNAL_HEAD_FLASHYELLOW
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_FLASHGREEN
static final int TYPE_SIGNAL_HEAD_FLASHGREEN
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_LIT
static final int TYPE_SIGNAL_HEAD_LIT
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_HELD
static final int TYPE_SIGNAL_HEAD_HELD
- See Also:
- Constant Field Values
-
TYPE_MEMORY_COMPARE
static final int TYPE_MEMORY_COMPARE
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_LUNAR
static final int TYPE_SIGNAL_HEAD_LUNAR
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_FLASHLUNAR
static final int TYPE_SIGNAL_HEAD_FLASHLUNAR
- See Also:
- Constant Field Values
-
TYPE_MEMORY_EQUALS_INSENSITIVE
static final int TYPE_MEMORY_EQUALS_INSENSITIVE
- See Also:
- Constant Field Values
-
TYPE_MEMORY_COMPARE_INSENSITIVE
static final int TYPE_MEMORY_COMPARE_INSENSITIVE
- See Also:
- Constant Field Values
-
TYPE_ROUTE_FREE
static final int TYPE_ROUTE_FREE
- See Also:
- Constant Field Values
-
TYPE_ROUTE_OCCUPIED
static final int TYPE_ROUTE_OCCUPIED
- See Also:
- Constant Field Values
-
TYPE_ROUTE_ALLOCATED
static final int TYPE_ROUTE_ALLOCATED
- See Also:
- Constant Field Values
-
TYPE_ROUTE_SET
static final int TYPE_ROUTE_SET
- See Also:
- Constant Field Values
-
TYPE_TRAIN_RUNNING
static final int TYPE_TRAIN_RUNNING
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_MAST_ASPECT_EQUALS
static final int TYPE_SIGNAL_MAST_ASPECT_EQUALS
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_MAST_LIT
static final int TYPE_SIGNAL_MAST_LIT
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_MAST_HELD
static final int TYPE_SIGNAL_MAST_HELD
- See Also:
- Constant Field Values
-
TYPE_SIGNAL_HEAD_APPEARANCE_EQUALS
static final int TYPE_SIGNAL_HEAD_APPEARANCE_EQUALS
- See Also:
- Constant Field Values
-
TYPE_BLOCK_STATUS_EQUALS
static final int TYPE_BLOCK_STATUS_EQUALS
- See Also:
- Constant Field Values
-
TYPE_ENTRYEXIT_ACTIVE
static final int TYPE_ENTRYEXIT_ACTIVE
- See Also:
- Constant Field Values
-
TYPE_ENTRYEXIT_INACTIVE
static final int TYPE_ENTRYEXIT_INACTIVE
- See Also:
- Constant Field Values
-
TYPE_OBLOCK_UNOCCUPIED
static final int TYPE_OBLOCK_UNOCCUPIED
- See Also:
- Constant Field Values
-
TYPE_OBLOCK_OCCUPIED
static final int TYPE_OBLOCK_OCCUPIED
- See Also:
- Constant Field Values
-
TYPE_OBLOCK_ALLOCATED
static final int TYPE_OBLOCK_ALLOCATED
- See Also:
- Constant Field Values
-
TYPE_OBLOCK_RUNNING
static final int TYPE_OBLOCK_RUNNING
- See Also:
- Constant Field Values
-
TYPE_OBLOCK_OUT_OF_SERVICE
static final int TYPE_OBLOCK_OUT_OF_SERVICE
- See Also:
- Constant Field Values
-
TYPE_OBLOCK_DARK
static final int TYPE_OBLOCK_DARK
- See Also:
- Constant Field Values
-
TYPE_OBLOCK_POWER_ERROR
static final int TYPE_OBLOCK_POWER_ERROR
- See Also:
- Constant Field Values
-
TYPE_XXXXXXX
static final int TYPE_XXXXXXX
- See Also:
- Constant Field Values
-
ACTION_OPTION_ON_CHANGE_TO_TRUE
static final int ACTION_OPTION_ON_CHANGE_TO_TRUE
- See Also:
- Constant Field Values
-
ACTION_OPTION_ON_CHANGE_TO_FALSE
static final int ACTION_OPTION_ON_CHANGE_TO_FALSE
- See Also:
- Constant Field Values
-
ACTION_OPTION_ON_CHANGE
static final int ACTION_OPTION_ON_CHANGE
- See Also:
- Constant Field Values
-
NUM_ACTION_OPTIONS
static final int NUM_ACTION_OPTIONS
- See Also:
- Constant Field Values
-
ACTION_NONE
static final int ACTION_NONE
- See Also:
- Constant Field Values
-
ACTION_SET_TURNOUT
static final int ACTION_SET_TURNOUT
- See Also:
- Constant Field Values
-
ACTION_SET_SIGNAL_APPEARANCE
static final int ACTION_SET_SIGNAL_APPEARANCE
- See Also:
- Constant Field Values
-
ACTION_SET_SIGNAL_HELD
static final int ACTION_SET_SIGNAL_HELD
- See Also:
- Constant Field Values
-
ACTION_CLEAR_SIGNAL_HELD
static final int ACTION_CLEAR_SIGNAL_HELD
- See Also:
- Constant Field Values
-
ACTION_SET_SIGNAL_DARK
static final int ACTION_SET_SIGNAL_DARK
- See Also:
- Constant Field Values
-
ACTION_SET_SIGNAL_LIT
static final int ACTION_SET_SIGNAL_LIT
- See Also:
- Constant Field Values
-
ACTION_TRIGGER_ROUTE
static final int ACTION_TRIGGER_ROUTE
- See Also:
- Constant Field Values
-
ACTION_SET_SENSOR
static final int ACTION_SET_SENSOR
- See Also:
- Constant Field Values
-
ACTION_DELAYED_SENSOR
static final int ACTION_DELAYED_SENSOR
- See Also:
- Constant Field Values
-
ACTION_SET_LIGHT
static final int ACTION_SET_LIGHT
- See Also:
- Constant Field Values
-
ACTION_SET_MEMORY
static final int ACTION_SET_MEMORY
- See Also:
- Constant Field Values
-
ACTION_ENABLE_LOGIX
static final int ACTION_ENABLE_LOGIX
- See Also:
- Constant Field Values
-
ACTION_DISABLE_LOGIX
static final int ACTION_DISABLE_LOGIX
- See Also:
- Constant Field Values
-
ACTION_PLAY_SOUND
static final int ACTION_PLAY_SOUND
- See Also:
- Constant Field Values
-
ACTION_RUN_SCRIPT
static final int ACTION_RUN_SCRIPT
- See Also:
- Constant Field Values
-
ACTION_DELAYED_TURNOUT
static final int ACTION_DELAYED_TURNOUT
- See Also:
- Constant Field Values
-
ACTION_LOCK_TURNOUT
static final int ACTION_LOCK_TURNOUT
- See Also:
- Constant Field Values
-
ACTION_RESET_DELAYED_SENSOR
static final int ACTION_RESET_DELAYED_SENSOR
- See Also:
- Constant Field Values
-
ACTION_CANCEL_SENSOR_TIMERS
static final int ACTION_CANCEL_SENSOR_TIMERS
- See Also:
- Constant Field Values
-
ACTION_RESET_DELAYED_TURNOUT
static final int ACTION_RESET_DELAYED_TURNOUT
- See Also:
- Constant Field Values
-
ACTION_CANCEL_TURNOUT_TIMERS
static final int ACTION_CANCEL_TURNOUT_TIMERS
- See Also:
- Constant Field Values
-
ACTION_SET_FAST_CLOCK_TIME
static final int ACTION_SET_FAST_CLOCK_TIME
- See Also:
- Constant Field Values
-
ACTION_START_FAST_CLOCK
static final int ACTION_START_FAST_CLOCK
- See Also:
- Constant Field Values
-
ACTION_STOP_FAST_CLOCK
static final int ACTION_STOP_FAST_CLOCK
- See Also:
- Constant Field Values
-
ACTION_COPY_MEMORY
static final int ACTION_COPY_MEMORY
- See Also:
- Constant Field Values
-
ACTION_SET_LIGHT_INTENSITY
static final int ACTION_SET_LIGHT_INTENSITY
- See Also:
- Constant Field Values
-
ACTION_SET_LIGHT_TRANSITION_TIME
static final int ACTION_SET_LIGHT_TRANSITION_TIME
- See Also:
- Constant Field Values
-
ACTION_CONTROL_AUDIO
static final int ACTION_CONTROL_AUDIO
- See Also:
- Constant Field Values
-
ACTION_JYTHON_COMMAND
static final int ACTION_JYTHON_COMMAND
- See Also:
- Constant Field Values
-
ACTION_ALLOCATE_WARRANT_ROUTE
static final int ACTION_ALLOCATE_WARRANT_ROUTE
- See Also:
- Constant Field Values
-
ACTION_DEALLOCATE_WARRANT_ROUTE
static final int ACTION_DEALLOCATE_WARRANT_ROUTE
- See Also:
- Constant Field Values
-
ACTION_SET_ROUTE_TURNOUTS
static final int ACTION_SET_ROUTE_TURNOUTS
- See Also:
- Constant Field Values
-
ACTION_AUTO_RUN_WARRANT
static final int ACTION_AUTO_RUN_WARRANT
- See Also:
- Constant Field Values
-
ACTION_CONTROL_TRAIN
static final int ACTION_CONTROL_TRAIN
- See Also:
- Constant Field Values
-
ACTION_SET_TRAIN_ID
static final int ACTION_SET_TRAIN_ID
- See Also:
- Constant Field Values
-
ACTION_SET_SIGNALMAST_ASPECT
static final int ACTION_SET_SIGNALMAST_ASPECT
- See Also:
- Constant Field Values
-
ACTION_GET_TRAIN_LOCATION
static final int ACTION_GET_TRAIN_LOCATION
- See Also:
- Constant Field Values
-
ACTION_SET_SIGNALMAST_HELD
static final int ACTION_SET_SIGNALMAST_HELD
- See Also:
- Constant Field Values
-
ACTION_CLEAR_SIGNALMAST_HELD
static final int ACTION_CLEAR_SIGNALMAST_HELD
- See Also:
- Constant Field Values
-
ACTION_SET_SIGNALMAST_DARK
static final int ACTION_SET_SIGNALMAST_DARK
- See Also:
- Constant Field Values
-
ACTION_SET_SIGNALMAST_LIT
static final int ACTION_SET_SIGNALMAST_LIT
- See Also:
- Constant Field Values
-
ACTION_SET_BLOCK_ERROR
static final int ACTION_SET_BLOCK_ERROR
- See Also:
- Constant Field Values
-
ACTION_CLEAR_BLOCK_ERROR
static final int ACTION_CLEAR_BLOCK_ERROR
- See Also:
- Constant Field Values
-
ACTION_DEALLOCATE_BLOCK
static final int ACTION_DEALLOCATE_BLOCK
- See Also:
- Constant Field Values
-
ACTION_SET_BLOCK_OUT_OF_SERVICE
static final int ACTION_SET_BLOCK_OUT_OF_SERVICE
- See Also:
- Constant Field Values
-
ACTION_SET_BLOCK_IN_SERVICE
static final int ACTION_SET_BLOCK_IN_SERVICE
- See Also:
- Constant Field Values
-
ACTION_MANUAL_RUN_WARRANT
static final int ACTION_MANUAL_RUN_WARRANT
- See Also:
- Constant Field Values
-
ACTION_SET_TRAIN_NAME
static final int ACTION_SET_TRAIN_NAME
- See Also:
- Constant Field Values
-
ACTION_SET_BLOCK_VALUE
static final int ACTION_SET_BLOCK_VALUE
- See Also:
- Constant Field Values
-
ACTION_SET_NXPAIR_ENABLED
static final int ACTION_SET_NXPAIR_ENABLED
- See Also:
- Constant Field Values
-
ACTION_SET_NXPAIR_DISABLED
static final int ACTION_SET_NXPAIR_DISABLED
- See Also:
- Constant Field Values
-
ACTION_SET_NXPAIR_SEGMENT
static final int ACTION_SET_NXPAIR_SEGMENT
- See Also:
- Constant Field Values
-
ACTION_GET_BLOCK_WARRANT
static final int ACTION_GET_BLOCK_WARRANT
- See Also:
- Constant Field Values
-
ACTION_GET_BLOCK_TRAIN_NAME
static final int ACTION_GET_BLOCK_TRAIN_NAME
- See Also:
- Constant Field Values
-
ITEM_TYPE_SENSOR
static final int ITEM_TYPE_SENSOR
***********************************************************************************- See Also:
- Constant Field Values
-
ITEM_TYPE_TURNOUT
static final int ITEM_TYPE_TURNOUT
- See Also:
- Constant Field Values
-
ITEM_TYPE_LIGHT
static final int ITEM_TYPE_LIGHT
- See Also:
- Constant Field Values
-
ITEM_TYPE_SIGNALHEAD
static final int ITEM_TYPE_SIGNALHEAD
- See Also:
- Constant Field Values
-
ITEM_TYPE_SIGNALMAST
static final int ITEM_TYPE_SIGNALMAST
- See Also:
- Constant Field Values
-
ITEM_TYPE_MEMORY
static final int ITEM_TYPE_MEMORY
- See Also:
- Constant Field Values
-
ITEM_TYPE_CONDITIONAL
static final int ITEM_TYPE_CONDITIONAL
- See Also:
- Constant Field Values
-
ITEM_TYPE_LOGIX
static final int ITEM_TYPE_LOGIX
- See Also:
- Constant Field Values
-
ITEM_TYPE_WARRANT
static final int ITEM_TYPE_WARRANT
- See Also:
- Constant Field Values
-
ITEM_TYPE_CLOCK
static final int ITEM_TYPE_CLOCK
- See Also:
- Constant Field Values
-
ITEM_TYPE_OBLOCK
static final int ITEM_TYPE_OBLOCK
- See Also:
- Constant Field Values
-
ITEM_TYPE_ENTRYEXIT
static final int ITEM_TYPE_ENTRYEXIT
- See Also:
- Constant Field Values
-
ITEM_TYPE_AUDIO
static final int ITEM_TYPE_AUDIO
- See Also:
- Constant Field Values
-
ITEM_TYPE_SCRIPT
static final int ITEM_TYPE_SCRIPT
- See Also:
- Constant Field Values
-
ITEM_TYPE_OTHER
static final int ITEM_TYPE_OTHER
- See Also:
- Constant Field Values
-
-
Method Detail
-
setLogicType
void setLogicType(Conditional.AntecedentOperator type, java.lang.String antecedent)
set the logic type (all AND's all OR's or mixed AND's and OR's set the antecedent expression - should be a well formed boolean statement with parenthesis indicating the order of evaluation- Parameters:
type
- the typeantecedent
- the expression
-
getAntecedentExpression
java.lang.String getAntecedentExpression()
Get antecedent (boolean expression) of Conditional- Returns:
- the expression
-
getLogicType
Conditional.AntecedentOperator getLogicType()
Get type of operators in the antecedent statement- Returns:
- the type
-
getTriggerOnChange
boolean getTriggerOnChange()
- Returns:
- true if action list is executed only when state changes, false if action list is executed on every calculation of state
-
setTriggerOnChange
void setTriggerOnChange(boolean trigger)
Set policy for execution of action list- Parameters:
trigger
- true execute only on change of state
-
setAction
void setAction(java.util.List<ConditionalAction> arrayList)
Set list of actions- Parameters:
arrayList
- the actions
-
getCopyOfActions
@Nonnull java.util.List<ConditionalAction> getCopyOfActions()
Make deep clone of actions.- Returns:
- a list of copies of actions
-
setStateVariables
void setStateVariables(java.util.List<ConditionalVariable> arrayList)
Set State Variables for this Conditional. Each state variable will evaluate either True or False when this Conditional is calculated.This method assumes that all information has been validated.
- Parameters:
arrayList
- the list of variables
-
getCopyOfStateVariables
@Nonnull java.util.List<ConditionalVariable> getCopyOfStateVariables()
Make deep clone of variables.- Returns:
- a list containing copies of variables
-
calculate
int calculate(boolean enabled, java.beans.PropertyChangeEvent evt)
Calculate this Conditional, triggering either or both actions if the user specified conditions are met, and the Logix is enabled. Sets the state of the conditional. Returns the calculated state of this Conditional.- Parameters:
enabled
- true if Logix should be enabled; false otherwiseevt
- event to trigger if true- Returns:
- the new state
-
validateAntecedent
java.lang.String validateAntecedent(java.lang.String ant, java.util.List<ConditionalVariable> variableList)
Check that an antecedent is well formed. If not, returns an error message. Otherwise returns null.- Parameters:
ant
- the expressionvariableList
- list of variables- Returns:
- true if well formed; false otherwise
-
cancelSensorTimer
void cancelSensorTimer(java.lang.String sname)
Stop a sensor timer if one is actively delaying setting of the specified sensor- Parameters:
sname
- the name of the timer
-
cancelTurnoutTimer
void cancelTurnoutTimer(java.lang.String sname)
Stop a turnout timer if one is actively delaying setting of the specified turnout- Parameters:
sname
- the name of the timer
-
getState
int getState()
State of the Conditional is returned.
-
addPropertyChangeListener
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Request a call-back when the bound KnownState property changes.- Specified by:
addPropertyChangeListener
in interfacePropertyChangeProvider
- Parameters:
l
- the listener
-
removePropertyChangeListener
void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a request for a call-back when a bound property changes.- Specified by:
removePropertyChangeListener
in interfacePropertyChangeProvider
- Parameters:
l
- the listener
-
-