Package jmri.jmrix.rfid.swing.tagcarwin
Class TagCarItem
- java.lang.Object
-
- jmri.jmrix.rfid.swing.tagcarwin.TagCarItem
-
public class TagCarItem extends java.lang.Object
Element for working with incoming RFID tags
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.JComboBox<java.lang.String>
locationCombo
protected javax.swing.JComboBox<java.lang.String>
track
-
Constructor Summary
Constructors Constructor Description TagCarItem()
TagCarItem(java.lang.String newTag)
TagCarItem(java.lang.String newTag, java.time.LocalTime tagTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JButton
getAction1()
javax.swing.JButton
getAction2()
java.lang.String
getCarNumber()
RollingStock
getCurrentCar()
java.lang.String
getDestination()
java.time.LocalTime
getLastSeen()
javax.swing.JComboBox<java.lang.String>
getLocationCombo()
java.lang.String
getLocationName()
Location
getLocationValue()
int
getRepeatCount()
java.lang.String
getRoad()
java.lang.String
getTag()
java.time.LocalTime
getTagTime()
java.lang.String
getTempLocation()
java.lang.String
getTempTrack()
java.lang.String
getTrack()
javax.swing.JComboBox<java.lang.String>
getTrackCombo()
java.lang.String
getTrain()
java.lang.Integer
getTrainPosition()
java.lang.String
getUpdatedLocation()
java.lang.String
getUpdatedTrack()
boolean
isLocationReady()
void
resetTempValues()
void
setAction1(javax.swing.JButton action1)
void
setAction2(javax.swing.JButton action2)
void
setCarNumber(java.lang.String carNumber)
void
setCurrentCar(RollingStock currentCar)
void
setDestination(java.lang.String destination)
void
setLastSeen(java.time.LocalTime lastSeen)
void
setLocation(java.lang.String location)
void
setLocation(javax.swing.JComboBox<java.lang.String> location)
void
setLocation(Location location)
void
setRoad(java.lang.String road)
void
setTag(java.lang.String tag)
void
setTagTime(java.time.LocalTime tagTime)
void
setTrack(java.lang.String track)
void
setTrack(javax.swing.JComboBox<java.lang.String> track)
void
setTrain(java.lang.String train)
void
setTrainPosition(java.lang.Integer trainPosition)
void
setUpdatedLocation(java.lang.String location, java.lang.String track)
void
setUpdatedTrack(java.lang.String thisTrack)
-
-
-
Field Detail
-
locationCombo
protected javax.swing.JComboBox<java.lang.String> locationCombo
-
track
protected javax.swing.JComboBox<java.lang.String> track
-
-
Constructor Detail
-
TagCarItem
public TagCarItem()
-
TagCarItem
public TagCarItem(java.lang.String newTag)
-
TagCarItem
public TagCarItem(java.lang.String newTag, java.time.LocalTime tagTime)
-
-
Method Detail
-
setUpdatedLocation
public void setUpdatedLocation(java.lang.String location, java.lang.String track)
-
setUpdatedTrack
public void setUpdatedTrack(java.lang.String thisTrack)
-
getUpdatedLocation
public java.lang.String getUpdatedLocation()
-
getUpdatedTrack
public java.lang.String getUpdatedTrack()
-
isLocationReady
public boolean isLocationReady()
-
resetTempValues
public void resetTempValues()
-
getLocationCombo
public javax.swing.JComboBox<java.lang.String> getLocationCombo()
-
setLocation
public void setLocation(javax.swing.JComboBox<java.lang.String> location)
-
setTrack
public void setTrack(javax.swing.JComboBox<java.lang.String> track)
-
getTrackCombo
public javax.swing.JComboBox<java.lang.String> getTrackCombo()
-
getCurrentCar
public RollingStock getCurrentCar()
-
setCurrentCar
public void setCurrentCar(RollingStock currentCar)
-
getTrainPosition
public java.lang.Integer getTrainPosition()
-
setTrainPosition
public void setTrainPosition(java.lang.Integer trainPosition)
-
getDestination
public java.lang.String getDestination()
-
setDestination
public void setDestination(java.lang.String destination)
-
getAction1
public javax.swing.JButton getAction1()
-
setAction1
public void setAction1(javax.swing.JButton action1)
-
getAction2
public javax.swing.JButton getAction2()
-
setAction2
public void setAction2(javax.swing.JButton action2)
-
setLastSeen
public void setLastSeen(java.time.LocalTime lastSeen)
-
getRepeatCount
public int getRepeatCount()
-
getLastSeen
public java.time.LocalTime getLastSeen()
-
getTagTime
public java.time.LocalTime getTagTime()
-
setTagTime
public void setTagTime(java.time.LocalTime tagTime)
-
getTag
public java.lang.String getTag()
-
setTag
public void setTag(java.lang.String tag)
-
getRoad
public java.lang.String getRoad()
-
setRoad
public void setRoad(java.lang.String road)
-
getCarNumber
public java.lang.String getCarNumber()
-
setCarNumber
public void setCarNumber(java.lang.String carNumber)
-
getLocationValue
public Location getLocationValue()
-
getLocationName
public java.lang.String getLocationName()
-
setLocation
public void setLocation(Location location)
-
setLocation
public void setLocation(java.lang.String location)
-
getTrack
public java.lang.String getTrack()
-
setTrack
public void setTrack(java.lang.String track)
-
getTrain
public java.lang.String getTrain()
-
setTrain
public void setTrain(java.lang.String train)
-
getTempLocation
public java.lang.String getTempLocation()
-
getTempTrack
public java.lang.String getTempTrack()
-
-