Class CarLoad
- java.lang.Object
-
- jmri.jmrit.operations.rollingstock.cars.CarLoad
-
public class CarLoad extends java.lang.Object
Represents a car load, load's priority, and if the load is hazardous. Also includes pickup and drop comments.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
_dropComment
(package private) boolean
_hazardous
(package private) java.lang.String
_loadType
(package private) java.lang.String
_name
(package private) java.lang.String
_pickupComment
(package private) java.lang.String
_priority
static java.lang.String
LOAD_TYPE_EMPTY
static java.lang.String
LOAD_TYPE_LOAD
static java.lang.String
NONE
static java.lang.String
PRIORITY_HIGH
static java.lang.String
PRIORITY_LOW
static java.lang.String
PRIORITY_MEDIUM
static java.lang.String
SPLIT_CHAR
-
Constructor Summary
Constructors Constructor Description CarLoad(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDropComment()
java.lang.String
getLoadType()
java.lang.String
getName()
java.lang.String
getPickupComment()
java.lang.String
getPriority()
boolean
isHazardous()
void
setDropComment(java.lang.String comment)
void
setHazardous(boolean isHazardous)
void
setLoadType(java.lang.String type)
void
setName(java.lang.String name)
void
setPickupComment(java.lang.String comment)
void
setPriority(java.lang.String priority)
-
-
-
Field Detail
-
NONE
public static final java.lang.String NONE
- See Also:
- Constant Field Values
-
PRIORITY_LOW
public static final java.lang.String PRIORITY_LOW
-
PRIORITY_MEDIUM
public static final java.lang.String PRIORITY_MEDIUM
-
PRIORITY_HIGH
public static final java.lang.String PRIORITY_HIGH
-
LOAD_TYPE_EMPTY
public static final java.lang.String LOAD_TYPE_EMPTY
-
LOAD_TYPE_LOAD
public static final java.lang.String LOAD_TYPE_LOAD
-
SPLIT_CHAR
public static final java.lang.String SPLIT_CHAR
- See Also:
- Constant Field Values
-
_name
java.lang.String _name
-
_priority
java.lang.String _priority
-
_pickupComment
java.lang.String _pickupComment
-
_dropComment
java.lang.String _dropComment
-
_loadType
java.lang.String _loadType
-
_hazardous
boolean _hazardous
-
-
Constructor Detail
-
CarLoad
public CarLoad(java.lang.String name)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getPriority
public java.lang.String getPriority()
-
setPriority
public void setPriority(java.lang.String priority)
-
isHazardous
public boolean isHazardous()
-
setHazardous
public void setHazardous(boolean isHazardous)
-
getPickupComment
public java.lang.String getPickupComment()
-
setPickupComment
public void setPickupComment(java.lang.String comment)
-
getDropComment
public java.lang.String getDropComment()
-
setDropComment
public void setDropComment(java.lang.String comment)
-
getLoadType
public java.lang.String getLoadType()
-
setLoadType
public void setLoadType(java.lang.String type)
-
-