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 theRosterEntry
for a loco on the programming track.This is a class (instead of a
Roster
member 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) int
address
protected int
cv7val
protected int
cv8val
protected boolean
shortAddr
-
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 void
done(int address)
protected abstract void
message(java.lang.String m)
protected void
statusUpdate(java.lang.String s)
Update the status field (if any).boolean
test1()
boolean
test2(int value)
boolean
test3(int value)
boolean
test4(int value)
boolean
test5(int value)
boolean
test6(int value)
boolean
test7(int value)
boolean
test8(int value)
boolean
test9(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:
test1
in classAbstractIdentify
-
test2
public boolean test2(int value)
- Specified by:
test2
in classAbstractIdentify
-
test3
public boolean test3(int value)
- Specified by:
test3
in classAbstractIdentify
-
test4
public boolean test4(int value)
- Specified by:
test4
in classAbstractIdentify
-
test5
public boolean test5(int value)
- Specified by:
test5
in classAbstractIdentify
-
test6
public boolean test6(int value)
- Specified by:
test6
in classAbstractIdentify
-
test7
public boolean test7(int value)
- Specified by:
test7
in classAbstractIdentify
-
test8
public boolean test8(int value)
- Specified by:
test8
in classAbstractIdentify
-
test9
public boolean test9(int value)
- Specified by:
test9
in classAbstractIdentify
-
statusUpdate
protected void statusUpdate(java.lang.String s)
Description copied from class:AbstractIdentify
Update the status field (if any). Invoked with "Done" when the results are in.- Specified by:
statusUpdate
in classAbstractIdentify
- Parameters:
s
- the new status
-
done
protected abstract void done(int address)
-
message
protected abstract void message(java.lang.String m)
-
-