|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.nce.consist.NceConsistRosterEntry
public class NceConsistRosterEntry
ConsistRosterEntry represents a single element in a consist roster.
The ConsistRosterEntry is the central place to find information about a consists configuration, including loco address, address type, loco's direction, and consist number. Up to six consist locos are currently tracked. ConsistRosterEntry handles persistency through the LocoFile class. Creating a ConsistRosterEntry does not necessarily read the corresponding file (which might not even exist), please see readFile(), writeFile() member functions.
All the data attributes have a content, not null.
When the filePath attribute is non-null, the user has decided to organize the roster into directories.
NceConsistRoster| Field Summary | |
|---|---|
protected String |
_comment
|
protected String |
_consistNumber
|
protected String |
_fileName
|
protected String |
_id
|
protected boolean |
_isLoco1LongAddress
|
protected boolean |
_isLoco2LongAddress
|
protected boolean |
_isLoco3LongAddress
|
protected boolean |
_isLoco4LongAddress
|
protected boolean |
_isLoco5LongAddress
|
protected boolean |
_isLoco6LongAddress
|
protected String |
_loco1DccAddress
|
protected String |
_loco1Direction
|
protected String |
_loco2DccAddress
|
protected String |
_loco2Direction
|
protected String |
_loco3DccAddress
|
protected String |
_loco3Direction
|
protected String |
_loco4DccAddress
|
protected String |
_loco4Direction
|
protected String |
_loco5DccAddress
|
protected String |
_loco5Direction
|
protected String |
_loco6DccAddress
|
protected String |
_loco6Direction
|
protected String |
_model
|
protected String |
_roadName
|
protected String |
_roadNumber
|
| Constructor Summary | |
|---|---|
NceConsistRosterEntry()
Construct a blank object. |
|
NceConsistRosterEntry(Element e)
Construct this Entry from XML. |
|
NceConsistRosterEntry(NceConsistRosterEntry pEntry,
String pID)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String _fileName
protected String _id
protected String _consistNumber
protected String _roadName
protected String _roadNumber
protected String _model
protected String _loco1DccAddress
protected boolean _isLoco1LongAddress
protected String _loco1Direction
protected String _loco2DccAddress
protected boolean _isLoco2LongAddress
protected String _loco2Direction
protected String _loco3DccAddress
protected boolean _isLoco3LongAddress
protected String _loco3Direction
protected String _loco4DccAddress
protected boolean _isLoco4LongAddress
protected String _loco4Direction
protected String _loco5DccAddress
protected boolean _isLoco5LongAddress
protected String _loco5Direction
protected String _loco6DccAddress
protected boolean _isLoco6LongAddress
protected String _loco6Direction
protected String _comment
| Constructor Detail |
|---|
public NceConsistRosterEntry()
public NceConsistRosterEntry(NceConsistRosterEntry pEntry,
String pID)
public NceConsistRosterEntry(Element e)
e - Consist XML element| Method Detail |
|---|
public void setId(String s)
public String getId()
public void setConsistNumber(String s)
public String getConsistNumber()
public void setRoadName(String s)
public String getRoadName()
public void setRoadNumber(String s)
public String getRoadNumber()
public void setModel(String s)
public String getModel()
public void setLoco1DccAddress(String s)
public String getLoco1DccAddress()
public void setLoco1LongAddress(boolean b)
public boolean isLoco1LongAddress()
public void setLoco1Direction(String s)
public String getLoco1Direction()
public void setLoco2DccAddress(String s)
public String getLoco2DccAddress()
public void setLoco2LongAddress(boolean b)
public boolean isLoco2LongAddress()
public void setLoco2Direction(String s)
public String getLoco2Direction()
public void setLoco3DccAddress(String s)
public String getLoco3DccAddress()
public void setLoco3LongAddress(boolean b)
public boolean isLoco3LongAddress()
public void setLoco3Direction(String s)
public String getLoco3Direction()
public void setLoco4DccAddress(String s)
public String getLoco4DccAddress()
public void setLoco4LongAddress(boolean b)
public boolean isLoco4LongAddress()
public void setLoco4Direction(String s)
public String getLoco4Direction()
public void setLoco5DccAddress(String s)
public String getLoco5DccAddress()
public void setLoco5LongAddress(boolean b)
public boolean isLoco5LongAddress()
public void setLoco5Direction(String s)
public String getLoco5Direction()
public void setLoco6DccAddress(String s)
public String getLoco6DccAddress()
public void setLoco6LongAddress(boolean b)
public boolean isLoco6LongAddress()
public void setLoco6Direction(String s)
public String getLoco6Direction()
public void setComment(String s)
public String getComment()
public String titleString()
public String toString()
toString in class Objectpublic void printEntry(Writer w)
public Vector<String> wrapComment(String comment,
int textSpace)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||