Class TrainManualBuildItem
java.lang.Object
jmri.beans.PropertyChangeSupport
jmri.jmrit.operations.trains.manualtrainbuilder.TrainManualBuildItem
- All Implemented Interfaces:
PropertyChangeFirer,PropertyChangeProvider
Represents one manual build item of a manual build.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Locationprotected booleanprotected Stringprotected Stringprotected booleanprotected Stringprotected RouteLocationprotected intprotected Trackprotected Trackprotected Stringprotected Stringprotected booleanstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddispose()intgetCount()getId()intbooleanbooleanbooleanvoidsetCount(int count) voidsetDestination(Location destination) voidsetDestinationTrack(Track track) protected voidsetDirtyAndFirePropertyChange(String p, Object old, Object n) voidsetFailEnabled(boolean fail) voidsetLoadName(String load) Sets the car load requested.voidsetLocationTrack(Track track) voidsetRemoveEnabled(boolean fail) voidsetRoadName(String road) Sets the requested car road name.voidvoidsetSequenceId(int sequence) voidvoidsetTypeName(String type) Sets the type of car requested.voidsetWarnEnabled(boolean warn) org.jdom2.Elementstore()Create an XML element to represent this Entry.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
-
_type
-
_road
-
_load
-
_routeLocation
-
_trackLocation
-
_destination
-
_trackDestination
-
_trainScheduleId
-
_count
-
_warn
-
_fail
-
_remove
-
TRAIN_SCHEDULE_CHANGED_PROPERTY
- See Also:
-
TYPE_CHANGED_PROPERTY
- See Also:
-
ROAD_CHANGED_PROPERTY
- See Also:
-
LOAD_CHANGED_PROPERTY
- See Also:
-
ROUTE_LOCATION_CHANGED_PROPERTY
- See Also:
-
LOCATION_TRACK_CHANGED_PROPERTY
- See Also:
-
DESTINATION_CHANGED_PROPERTY
- See Also:
-
DESTINATION_TRACK_CHANGED_PROPERTY
- See Also:
-
COUNT_CHANGED_PROPERTY
- See Also:
-
WARN_CHANGED_PROPERTY
- See Also:
-
FAIL_CHANGED_PROPERTY
- See Also:
-
REMOVE_CHANGED_PROPERTY
- See Also:
-
DISPOSE
- See Also:
-
-
Constructor Details
-
TrainManualBuildItem
- Parameters:
id- ManualItem string id
-
TrainManualBuildItem
Construct this Entry from XML. This member has to remain synchronized with the detailed DTD in operations-config.xml- Parameters:
e- Consist XML element
-
-
Method Details
-
getId
-
getSequenceId
-
setSequenceId
-
getTypeName
-
setTypeName
Sets the type of car requested.- Parameters:
type- The car type requested.
-
getTrainScheduleId
-
getTrainScheduleName
-
setTrainScheduleId
-
getRoadName
-
setRoadName
Sets the requested car road name.- Parameters:
road- The car road requested.
-
setLoadName
Sets the car load requested.- Parameters:
load- The load name requested.
-
getLoadName
-
getRouteLocation
-
setRouteLocation
-
getLocationName
-
getRouteLocationId
-
getLocationTrack
-
setLocationTrack
-
getLocationTrackName
-
getLocationTrackId
-
getDestination
-
setDestination
-
getDestinationName
-
getDestinationId
-
getDestinationTrack
-
setDestinationTrack
-
getDestinationTrackName
-
getDestinationTrackId
-
getCount
-
setCount
-
isWarnEnabled
-
setWarnEnabled
-
isFailEnabled
-
setFailEnabled
-
isRemoveEnabled
-
setRemoveEnabled
-
setDirtyAndFirePropertyChange
-
copyManualBuildItem
-
dispose
-
store
Create an XML element to represent this Entry. This member has to remain synchronized with the detailed DTD in operations-config.xml.- Returns:
- Contents in a JDOM Element
-