org.lsst.ccs.drivers.parker
Class TestAcrComm

java.lang.Object
  extended by org.lsst.ccs.drivers.parker.TestAcrComm
All Implemented Interfaces:
org.lsst.ccs.utilities.sa.CmndProcess.Dispatch

public class TestAcrComm
extends Object
implements org.lsst.ccs.utilities.sa.CmndProcess.Dispatch

Program to communicate with a Parker (ACR or Aries) motor controller

Author:
Owen Saxton

Constructor Summary
TestAcrComm(AcrComm acr, org.lsst.ccs.utilities.sa.CmndProcess proc, org.lsst.ccs.utilities.sa.Output out)
           
TestAcrComm(String node, boolean log)
          Main constructors
 
Method Summary
 boolean dispatch(int code, int found, Object[] args)
          Dispatches local command for processing
 AcrComm getComm()
          Gets the controller communication object
 String getPrompt()
          Gets the stored prompt
static void main(String[] args)
          Main program
 boolean process(String line)
          Processes an input line
 void run()
          Runs the test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAcrComm

public TestAcrComm(String node,
                   boolean log)
Main constructors


TestAcrComm

public TestAcrComm(AcrComm acr,
                   org.lsst.ccs.utilities.sa.CmndProcess proc,
                   org.lsst.ccs.utilities.sa.Output out)
Method Detail

main

public static void main(String[] args)
Main program


run

public void run()
Runs the test

Loops reading and processing each new typed command line.


process

public boolean process(String line)
Processes an input line


getPrompt

public String getPrompt()
Gets the stored prompt


getComm

public AcrComm getComm()
Gets the controller communication object


dispatch

public boolean dispatch(int code,
                        int found,
                        Object[] args)
Dispatches local command for processing

Specified by:
dispatch in interface org.lsst.ccs.utilities.sa.CmndProcess.Dispatch


Copyright © 2012 LSST. All Rights Reserved.