jmri.jmrit.roster
Class IdentifyLoco

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

public abstract class IdentifyLoco
extends AbstractIdentify

Interact with a programmer to identify the RosterEntry 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. Once started, this maintains a List of possible RosterEntrys as it works through the identification progress.

Author:
Bob Jacobsen Copyright (C) 2001
See Also:
RosterEntry

Field Summary
 
Fields inherited from interface jmri.ProgListener
CommError, ConfirmFailed, FailedTimeout, NoAck, NoLocoDetected, NotImplemented, OK, ProgrammerBusy, ProgrammingShort, SequenceError, UnknownError, UserAborted
 
Constructor Summary
IdentifyLoco()
           
 
Method Summary
protected abstract  void done(int address)
           
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

IdentifyLoco

public IdentifyLoco()
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 address)

message

protected abstract void message(String m)


Copyright © 1997 - 2011 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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads