edu.wisc.ssec.mcidasv.jython
Class BatchCommand

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.jython.Command
      extended by edu.wisc.ssec.mcidasv.jython.BatchCommand

 class BatchCommand
extends Command


Field Summary
private  String bufferSource
           
private  List<String> commandBuffer
           
 
Fields inherited from class edu.wisc.ssec.mcidasv.jython.Command
console
 
Constructor Summary
BatchCommand(Console console, String bufferSource, List<String> buffer)
           
 
Method Summary
 void execute(Interpreter interpreter)
          Hook to provide various implementations of command execution.
 String toString()
           
 
Methods inherited from class edu.wisc.ssec.mcidasv.jython.Command
getInputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bufferSource

private final String bufferSource

commandBuffer

private final List<String> commandBuffer
Constructor Detail

BatchCommand

public BatchCommand(Console console,
                    String bufferSource,
                    List<String> buffer)
Method Detail

execute

public void execute(Interpreter interpreter)
             throws Exception
Description copied from class: Command
Hook to provide various implementations of command execution.

Specified by:
execute in class Command
Parameters:
interpreter - Jython interpreter that will execute the command.
Throws:
Exception - An error was encountered executing the command. Jython will catch three standard Python exceptions: SyntaxError, ValueError, and OverflowError. Other exceptions are thrown.

toString

public String toString()
Overrides:
toString in class Object