gov.sandia.ccaffeine.dc.user_iface.ccacmd
Class CmdContextCCA

java.lang.Object
  extended by gov.sandia.ccaffeine.cmd.CmdContext
      extended by gov.sandia.ccaffeine.dc.user_iface.ccacmd.CmdContextCCA

public class CmdContextCCA
extends CmdContext

The CCA demo command-line interpreter has some messy data.


Field Summary
 DefaultBuilderModel bm
           
 CmdLineBuilderView bv
           
 java.io.LineNumberReader in
           
 
Constructor Summary
CmdContextCCA(java.io.InputStream in, CmdLineBuilderView bv)
           
 
Method Summary
 java.lang.String getClass(java.lang.String className)
          Interpreter can define a restricted set of classes as qualified for command-line use.
 java.lang.String getInstance(java.lang.String instanceName)
          Interpreter can define a restricted set of instances as qualified for command-line use.
 void p(java.lang.String s)
          Interpreter has a function for writing from a String.
 void pn(java.lang.String s)
          Interpreter has a function for writing line from a String.
 java.lang.String prompt()
          prompt string
 java.lang.String readLine()
          Interpreter has to get input from somewhere, line at a time.
 
Methods inherited from class gov.sandia.ccaffeine.cmd.CmdContext
debug, setDebug, setVerbose, verbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

public java.io.LineNumberReader in

bm

public DefaultBuilderModel bm

bv

public CmdLineBuilderView bv
Constructor Detail

CmdContextCCA

public CmdContextCCA(java.io.InputStream in,
                     CmdLineBuilderView bv)
Method Detail

pn

public void pn(java.lang.String s)
Description copied from class: CmdContext
Interpreter has a function for writing line from a String.

Specified by:
pn in class CmdContext

p

public void p(java.lang.String s)
Description copied from class: CmdContext
Interpreter has a function for writing from a String.

Specified by:
p in class CmdContext

prompt

public java.lang.String prompt()
Description copied from class: CmdContext
prompt string

Specified by:
prompt in class CmdContext

readLine

public java.lang.String readLine()
                          throws java.io.IOException
Description copied from class: CmdContext
Interpreter has to get input from somewhere, line at a time. Dearly wish this could support command and name completions.

Specified by:
readLine in class CmdContext
Throws:
java.io.IOException

getInstance

public java.lang.String getInstance(java.lang.String instanceName)
Description copied from class: CmdContext
Interpreter can define a restricted set of instances as qualified for command-line use. May return null. This takes care of changing approximate instance names to exact. If a string is returned, it will be exactly defined in the CmdContext, but the partial-matching is not guaranteed unique.

Specified by:
getInstance in class CmdContext

getClass

public java.lang.String getClass(java.lang.String className)
Description copied from class: CmdContext
Interpreter can define a restricted set of classes as qualified for command-line use. May return null. This takes care of changing approximate class names to exact. If a string is returned, it will be exactly defined in the CmdContext, but the partial-matching is not guaranteed unique.

Specified by:
getClass in class CmdContext