org.lsst.ccs.utilities.sa
Class CmndProcess

java.lang.Object
  extended by org.lsst.ccs.utilities.sa.CmndProcess

public class CmndProcess
extends Object

Class to implement command processing, new style

Author:
Owen Saxton

Nested Class Summary
static class CmndProcess.Command
          Inner class to implement command decoding
static interface CmndProcess.Dispatch
          Inner interface to define command dispatching
static class CmndProcess.Lookup
          Inner class to implement lookup tables
 
Field Summary
static int CMD_AMBIG
           
static int CMD_UNKNOWN
           
 
Constructor Summary
CmndProcess()
          Main constructor
 
Method Summary
 void add(CmndProcess.Dispatch disp, CmndProcess.Command cmnd)
          Adds a command processor
 boolean process(String line)
          Processes a command line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMD_AMBIG

public static final int CMD_AMBIG
See Also:
Constant Field Values

CMD_UNKNOWN

public static final int CMD_UNKNOWN
See Also:
Constant Field Values
Constructor Detail

CmndProcess

public CmndProcess()
Main constructor

Method Detail

add

public void add(CmndProcess.Dispatch disp,
                CmndProcess.Command cmnd)
Adds a command processor


process

public boolean process(String line)
Processes a command line



Copyright © 2012 LSST. All Rights Reserved.