|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.operations.rollingstock.RollingStock
jmri.jmrit.operations.rollingstock.cars.Car
public class Car
Represents a car on the layout
| Field Summary | |
|---|---|
protected boolean |
_caboose
|
protected boolean |
_fred
|
protected boolean |
_hazardous
|
protected Kernel |
_kernel
|
protected String |
_load
|
protected boolean |
_loadGeneratedByStaging
|
protected Location |
_nextDestination
|
protected Track |
_nextDestTrack
|
protected String |
_nextLoad
|
protected int |
_nextWait
|
protected int |
_order
|
protected boolean |
_passenger
|
protected Location |
_previousNextDestination
|
protected Track |
_previousNextDestTrack
|
protected Location |
_rweDestination
|
protected Track |
_rweDestTrack
|
protected String |
_scheduleId
|
protected int |
_wait
|
static String |
CAPACITY
|
static String |
CUSTOM
|
static String |
LOAD_CHANGED_PROPERTY
|
static String |
NEXT_DESTINATION_CHANGED_PROPERTY
|
static String |
NEXT_DESTINATION_TRACK_CHANGED_PROPERTY
|
static String |
NEXTWAIT_CHANGED_PROPERTY
|
static String |
RETURN_WHEN_EMPTY_CHANGED_PROPERTY
|
static String |
SCHEDULE
|
static String |
WAIT_CHANGED_PROPERTY
|
| Fields inherited from class jmri.jmrit.operations.rollingstock.RollingStock |
|---|
_built, _color, _comment, _destination, _id, _length, _location, _locationUnknown, _moves, _number, _outOfService, _owner, _rfid, _road, _routeDestination, _routeId, _routeLocation, _trackDestination, _trackLocation, _train, _type, _value, _weight, _weightTons, COUPLER, DEFAULT_WEIGHT, DESTINATION_CHANGED_PROPERTY, DESTINATIONTRACK_CHANGED_PROPERTY, ERROR_TRACK, LENGTH_CHANGED_PROPERTY, LOCATION_CHANGED_PROPERTY, number, rb, TRACK_CHANGED_PROPERTY, TRAIN_CHANGED_PROPERTY, TYPE_CHANGED_PROPERTY |
| Constructor Summary | |
|---|---|
Car()
|
|
Car(Element e)
Construct this Entry from XML. |
|
Car(String road,
String number)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean _passenger
protected boolean _hazardous
protected boolean _caboose
protected boolean _fred
protected boolean _loadGeneratedByStaging
protected Kernel _kernel
protected String _load
protected int _wait
protected int _order
protected Location _rweDestination
protected Track _rweDestTrack
protected String _scheduleId
protected String _nextLoad
protected int _nextWait
protected Location _nextDestination
protected Track _nextDestTrack
protected Location _previousNextDestination
protected Track _previousNextDestTrack
public static final String LOAD_CHANGED_PROPERTY
public static final String WAIT_CHANGED_PROPERTY
public static final String NEXTWAIT_CHANGED_PROPERTY
public static final String NEXT_DESTINATION_CHANGED_PROPERTY
public static final String NEXT_DESTINATION_TRACK_CHANGED_PROPERTY
public static final String RETURN_WHEN_EMPTY_CHANGED_PROPERTY
public static final String SCHEDULE
public static final String CUSTOM
public static final String CAPACITY
| Constructor Detail |
|---|
public Car()
public Car(String road,
String number)
public Car(Element e)
e - Car XML element| Method Detail |
|---|
public void setHazardous(boolean hazardous)
public boolean isHazardous()
public void setPassenger(boolean passenger)
public boolean isPassenger()
public void setFred(boolean fred)
public boolean hasFred()
public void setLoad(String load)
public String getLoad()
public String getPriority()
getPriority in class RollingStockpublic String getPickupComment()
public String getDropComment()
public void setLoadGeneratedFromStaging(boolean fromStaging)
public boolean isLoadGeneratedFromStaging()
public void setScheduleId(String id)
public String getScheduleId()
public void setNextLoad(String load)
public String getNextLoad()
public String getWeightTons()
getWeightTons in class RollingStockpublic int getAdjustedWeightTons()
getAdjustedWeightTons in class RollingStockpublic void setWait(int count)
public int getWait()
public void setOrder(int number)
number - The assigned service order for this car.public int getOrder()
public void setNextWait(int count)
public int getNextWait()
public void setNextDestination(Location destination)
destination - The final destination for this car.public Location getNextDestination()
public String getNextDestinationName()
public void setNextDestTrack(Track track)
public Track getNextDestTrack()
public String getNextDestTrackName()
public void setPreviousNextDestination(Location location)
public Location getPreviousNextDestination()
public void setPreviousNextDestTrack(Track track)
public Track getPreviousNextDestTrack()
public void setReturnWhenEmptyDestination(Location destination)
public Location getReturnWhenEmptyDestination()
public String getReturnWhenEmptyDestinationName()
public void setReturnWhenEmptyDestTrack(Track track)
public Track getReturnWhenEmptyDestTrack()
public String getReturnWhenEmptyDestTrackName()
public String getReturnWhenEmptyDestName()
public void setCaboose(boolean caboose)
public boolean isCaboose()
public void setKernel(Kernel kernel)
kernel - public Kernel getKernel()
public String getKernelName()
public String testDestination(Location destination,
Track track)
testDestination in class RollingStockpublic String testSchedule(Track track)
public String setDestination(Location destination,
Track track)
setDestination in class RollingStockdestination - track - (yard, spur, staging, or interchange track)
public String setDestination(Location destination,
Track track,
boolean force)
setDestination in class RollingStockdestination - track - (yard, spur, staging, or interchange track)force - when true ignore track length, type, & road when setting destination
public void updateKernel()
protected void reset()
reset in class RollingStockpublic void dispose()
RollingStock
dispose in class RollingStockpublic Element store()
public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerpropertyChange in class RollingStock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||