org.lsst.ccs.subsystems.fcs.drivers
Class CommandDispenser.CommandToRegister

java.lang.Object
  extended by org.lsst.ccs.subsystems.fcs.drivers.CommandDispenser.CommandToRegister
Enclosing class:
CommandDispenser

protected class CommandDispenser.CommandToRegister
extends Object


Constructor Summary
CommandDispenser.CommandToRegister(String aTextCommand)
           
 
Method Summary
 String getResponse(long timeout)
          Return the response to the initial commandWord.
 String toString()
           
 void updateResponse(String theResponse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandDispenser.CommandToRegister

public CommandDispenser.CommandToRegister(String aTextCommand)
Method Detail

updateResponse

public void updateResponse(String theResponse)

getResponse

public String getResponse(long timeout)
                   throws TimeoutException
Return the response to the initial commandWord. If the response is not yet arrived, it waits for it.

Parameters:
timeout - we don't want to wait the response more than timeout
Returns:
this.response when it's arrived
Throws:
TimeoutException - if the response doesn't arrive during this elapse of time

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 LSST. All Rights Reserved.