org.lsst.ccs.utilities.sa
Class CmndProc

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

public class CmndProc
extends Object

Class to implement command processing

Author:
Owen Saxton

Nested Class Summary
static class CmndProc.Command
          Inner class to implement command decoding
static interface CmndProc.Dispatch
          Inner interface to define command dispatching
static class CmndProc.Lookup
          Inner class to implement lookup tables
 
Field Summary
static int CMD_AMBIG
           
static int CMD_UNKNOWN
           
 
Constructor Summary
CmndProc()
          Main constructor
 
Method Summary
 void add(CmndProc.Dispatch disp, CmndProc.Command cmnd)
          Adds a command processor
 boolean process(String line)
          Processes a command line
static int scanArgs(Scanner scan, String types, Object[] args, CmndProc.Lookup... lookup)
           
 
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

CmndProc

public CmndProc()
Main constructor

Method Detail

add

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


process

public boolean process(String line)
Processes a command line


scanArgs

public static int scanArgs(Scanner scan,
                           String types,
                           Object[] args,
                           CmndProc.Lookup... lookup)


Copyright © 2012 LSST. All Rights Reserved.