jmri.jmrit.decoderdefn
Class IdentifyDecoder

java.lang.Object
  extended by jmri.jmrit.AbstractIdentify
      extended by jmri.jmrit.decoderdefn.IdentifyDecoder
All Implemented Interfaces:
EventListener, ProgListener

public abstract class IdentifyDecoder
extends AbstractIdentify

Interact with a programmer to identify the DecoderIndexFile entry for a decoder on the programming track. This is a class (instead of a Roster member function) to simplify use of ProgListener callbacks. Once started, this maintains a List of possible RosterEntrys as it works through the identification progress.

Author:
Bob Jacobsen Copyright (C) 2001, Howard G. Penny Copyright (C) 2005
See Also:
RosterEntry, CombinedLocoSelPane, NewLocoSelPane

Field Summary
 
Fields inherited from interface jmri.ProgListener
ConfirmFailed, FailedTimeout, NoAck, NoLocoDetected, NotImplemented, OK, ProgrammerBusy, ProgrammingShort, UnknownError, UserAborted
 
Constructor Summary
IdentifyDecoder()
           
 
Method Summary
protected abstract  void done(int mfgID, int modelID, int productID)
           
protected abstract  void message(String m)
           
protected  void statusUpdate(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)
           
 
Methods inherited from class jmri.jmrit.AbstractIdentify
error, identifyDone, isRunning, programmingOpReply, readCV, start, writeCV
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifyDecoder

public IdentifyDecoder()
Method Detail

test1

public boolean test1()
Specified by:
test1 in class AbstractIdentify

test2

public boolean test2(int value)
Specified by:
test2 in class AbstractIdentify

test3

public boolean test3(int value)
Specified by:
test3 in class AbstractIdentify

test4

public boolean test4(int value)
Specified by:
test4 in class AbstractIdentify

test5

public boolean test5(int value)
Specified by:
test5 in class AbstractIdentify

test6

public boolean test6(int value)
Specified by:
test6 in class AbstractIdentify

test7

public boolean test7(int value)
Specified by:
test7 in class AbstractIdentify

test8

public boolean test8(int value)
Specified by:
test8 in class AbstractIdentify

statusUpdate

protected void statusUpdate(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 class AbstractIdentify

done

protected abstract void done(int mfgID,
                             int modelID,
                             int productID)

message

protected abstract void message(String m)


Copyright © 1997 - 2008 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: SourceForge_Logo