|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractConsistManager
public abstract class AbstractConsistManager
An Abstract Consist Manager on top of which system specific consist managers can be built.
| Field Summary | |
|---|---|
protected ArrayList |
ConsistList
|
protected Hashtable |
ConsistTable
|
| Constructor Summary | |
|---|---|
AbstractConsistManager()
|
|
| Method Summary | |
|---|---|
abstract Consist |
addConsist(DccLocoAddress address)
Add a new Consist with the given address to the ConsistTable/ConsistList |
abstract boolean |
csConsistNeedsSeperateAddress()
Does a CS consist require a seperate consist address? |
String |
decodeErrorCode(int ErrorCode)
Translate Error Codes recieved by a consistListener into Strings |
void |
delConsist(DccLocoAddress address)
Remove an old Consist |
Consist |
getConsist(DccLocoAddress address)
Find a Consist with this consist address, and return it. |
ArrayList |
getConsistList()
Return the list of consists we know about. |
abstract boolean |
isCommandStationConsistPossible()
Does this implementation support a command station consist? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Hashtable ConsistTable
protected ArrayList ConsistList
| Constructor Detail |
|---|
public AbstractConsistManager()
| Method Detail |
|---|
public Consist getConsist(DccLocoAddress address)
getConsist in interface ConsistManagerpublic abstract Consist addConsist(DccLocoAddress address)
public void delConsist(DccLocoAddress address)
ConsistManager
delConsist in interface ConsistManagerpublic abstract boolean isCommandStationConsistPossible()
isCommandStationConsistPossible in interface ConsistManagerpublic abstract boolean csConsistNeedsSeperateAddress()
csConsistNeedsSeperateAddress in interface ConsistManagerpublic ArrayList getConsistList()
getConsistList in interface ConsistManagerpublic String decodeErrorCode(int ErrorCode)
ConsistManager
decodeErrorCode in interface ConsistManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||