Package jmri.jmrit.roster
Class IdentifyLoco
- java.lang.Object
-
- jmri.jmrit.AbstractIdentify
-
- jmri.jmrit.roster.IdentifyLoco
-
- All Implemented Interfaces:
java.util.EventListener,ProgListener
public abstract class IdentifyLoco extends AbstractIdentify
Interact with a programmer to identify theRosterEntryfor a loco on the programming track.This is a class (instead of a
Rostermember function) to simplify use of ProgListener callbacks. It is abstract as we expect that local classes will define the message and done members.- See Also:
CombinedLocoSelPane,NewLocoSelPane
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intaddressprotected intcv7valprotected intcv8valprotected booleanshortAddr-
Fields inherited from interface jmri.ProgListener
CommError, ConfirmFailed, FailedTimeout, NoAck, NoLocoDetected, NotImplemented, OK, ProgrammerBusy, ProgrammingShort, SequenceError, UnknownError, UserAborted
-
-
Constructor Summary
Constructors Constructor Description IdentifyLoco(Programmer programmer)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddone(int address)protected abstract voidmessage(java.lang.String m)protected voidstatusUpdate(java.lang.String s)Update the status field (if any).booleantest1()booleantest2(int value)booleantest3(int value)booleantest4(int value)booleantest5(int value)booleantest6(int value)booleantest7(int value)booleantest8(int value)booleantest9(int value)-
Methods inherited from class jmri.jmrit.AbstractIdentify
error, identifyDone, isOptionalCv, isRunning, programmingOpReply, readCV, setOptionalCv, start, writeCV
-
-
-
-
Constructor Detail
-
IdentifyLoco
public IdentifyLoco(Programmer programmer)
-
-
Method Detail
-
test1
public boolean test1()
- Specified by:
test1in classAbstractIdentify
-
test2
public boolean test2(int value)
- Specified by:
test2in classAbstractIdentify
-
test3
public boolean test3(int value)
- Specified by:
test3in classAbstractIdentify
-
test4
public boolean test4(int value)
- Specified by:
test4in classAbstractIdentify
-
test5
public boolean test5(int value)
- Specified by:
test5in classAbstractIdentify
-
test6
public boolean test6(int value)
- Specified by:
test6in classAbstractIdentify
-
test7
public boolean test7(int value)
- Specified by:
test7in classAbstractIdentify
-
test8
public boolean test8(int value)
- Specified by:
test8in classAbstractIdentify
-
test9
public boolean test9(int value)
- Specified by:
test9in classAbstractIdentify
-
statusUpdate
protected void statusUpdate(java.lang.String s)
Description copied from class:AbstractIdentifyUpdate the status field (if any). Invoked with "Done" when the results are in.- Specified by:
statusUpdatein classAbstractIdentify- Parameters:
s- the new status
-
done
protected abstract void done(int address)
-
message
protected abstract void message(java.lang.String m)
-
-