Package jmri.jmrit.operations.automation
Class AutomationItem
java.lang.Object
jmri.beans.PropertyChangeSupport
jmri.jmrit.operations.automation.AutomationItem
- All Implemented Interfaces:
PropertyChangeListener,EventListener,PropertyChangeFirer,PropertyChangeProvider
Represents one automation item of a automation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Actionprotected booleanprotected booleanprotected booleanprotected Stringprotected booleanprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected RouteLocationprotected intprotected Trainprotected Stringstatic final Stringstatic final StringFields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport -
Constructor Summary
ConstructorsConstructorDescriptionAutomationItem(String id) AutomationItem(org.jdom2.Element e) Construct this Entry from XML. -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyItem(AutomationItem item) Copies item.voiddispose()voiddoAction()static ActiongetActionByCode(int code) intGets a list of all known automation actionsThe automation for actions, not the automation associated with this item.The automationItem for actions not this item.getId()intgetTrain()booleanbooleanbooleanbooleanbooleanvoidvoidreset()voidvoidsetActionRan(boolean ran) voidsetActionRunning(boolean actionRunning) voidsetActionSuccessful(boolean successful) voidsetAutomationToRun(Automation automation) The automation for actions, not the automation associated with this item.protected voidsetDirtyAndFirePropertyChange(String p, Object old, Object n) voidsetGotoAutomationItem(AutomationItem automationItem) The automation for action GOTO, not this automation item.voidsetGotoBranched(boolean branched) voidsetHaltFailureEnabled(boolean enable) voidsetMessage(String message) voidsetMessageFail(String message) voidvoidvoidsetSequenceId(int sequence) voidvoidsetTrainSchedule(TrainSchedule trainSchedule) org.jdom2.Elementstore()Create an XML element to represent this Entry.toString()Methods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Field Details
-
NONE
- See Also:
-
_id
-
_sequenceId
-
_actionRunning
-
_actionSuccessful
-
_actionRan
-
_haltFail
-
_action
-
_message
-
_messageFail
-
_train
-
_routeLocation
-
_automationIdToRun
-
_gotoAutomationItemId
-
_gotoAutomationBranched
-
_trainScheduleId
-
DISPOSE
- See Also:
-
-
Constructor Details
-
AutomationItem
-
AutomationItem
Construct this Entry from XML. This member has to remain synchronized with the detailed DTD in operations-trains.xml- Parameters:
e- Consist XML element
-
-
Method Details
-
getId
-
toString
-
getSequenceId
-
setSequenceId
-
setAction
-
getAction
-
getActionName
-
getActionCode
-
doAction
-
setTrain
-
getTrain
-
setRouteLocation
-
getRouteLocation
-
setOther
-
setAutomationToRun
The automation for actions, not the automation associated with this item.- Parameters:
automation- the automation to run
-
getAutomationToRun
The automation for actions, not the automation associated with this item.- Returns:
- Automation for this action
-
setGotoAutomationItem
The automation for action GOTO, not this automation item.- Parameters:
automationItem- which automation item to GOTO
-
getGotoAutomationItem
The automationItem for actions not this item.- Returns:
- AutomationItem for GOTO
-
setGotoBranched
-
isGotoBranched
-
setTrainSchedule
-
getTrainSchedule
-
getTrainScheduleId
-
setMessage
-
getMessage
-
setMessageFail
-
getMessageFail
-
isHaltFailureEnabled
-
setHaltFailureEnabled
-
setActionRunning
-
isActionRunning
-
setActionSuccessful
-
setActionRan
-
isActionRan
-
isActionSuccessful
-
getStatus
-
reset
-
copyItem
Copies item.- Parameters:
item- The item to copy.
-
getActionByCode
-
getActionList
Gets a list of all known automation actions- Returns:
- list of automation actions
-
getActionComboBox
-
dispose
-
store
Create an XML element to represent this Entry. This member has to remain synchronized with the detailed DTD in operations-trains.dtd.- Returns:
- Contents in a JDOM Element
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
setDirtyAndFirePropertyChange
-