Package jmri.jmrit.logix
Class TrainOrder
- java.lang.Object
-
- jmri.jmrit.logix.TrainOrder
-
class TrainOrder extends java.lang.Object
A TrainOrder has information about a required speed change of the warrant. This class is returned when a BlockOrder attempts to set the warrant's path through its block.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainOrder.Cause
-
Field Summary
Fields Modifier and Type Field Description protected TrainOrder.Cause
_cause
protected int
_idxContrlBlock
protected int
_idxEnterBlock
protected java.lang.String
_message
protected java.lang.String
_speedType
-
Constructor Summary
Constructors Modifier Constructor Description protected
TrainOrder(java.lang.String speedType, TrainOrder.Cause cause, int idxControl, int idxEnter, java.lang.String msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
_speedType
protected java.lang.String _speedType
-
_cause
protected TrainOrder.Cause _cause
-
_idxContrlBlock
protected int _idxContrlBlock
-
_idxEnterBlock
protected int _idxEnterBlock
-
_message
protected java.lang.String _message
-
-
Constructor Detail
-
TrainOrder
protected TrainOrder(java.lang.String speedType, TrainOrder.Cause cause, int idxControl, int idxEnter, java.lang.String msg)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-