OpenCard  
 
OCF, the OpenCard Framework is a standard Java framework for working with Smart Cards.  
 

com.ibm.opencard.script
Class ScriptInterpreter

java.lang.Object
  |
  +--com.ibm.opencard.script.ScriptInterpreter

public class ScriptInterpreter
extends java.lang.Object

An interpreter for IBM's SmartCard Toolkit scripts.

Version:
$Id: ScriptInterpreter.java,v 1.1 1999/12/02 16:06:06 damke Exp $

Constructor Summary
ScriptInterpreter(HandlerChain handlerchain, APDUSender apdusender)
          Instantiates a script interpreter.
 
Method Summary
 void executeOrder(java.lang.String order, Script script, Dictionary dictionary, TLVBuffer blackboard)
          Executes a given order within the given script, using optional dictionary and optional blackboard.
 void setDictionary(Dictionary dictionary)
          Set the dictionary to be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptInterpreter

public ScriptInterpreter(HandlerChain handlerchain,
                         APDUSender apdusender)
Instantiates a script interpreter.
Parameters:
handlerchain - a collection of handlers for various requests
Method Detail

setDictionary

public void setDictionary(Dictionary dictionary)
Set the dictionary to be used.
Parameters:
dictionary - the dictionary to be used

executeOrder

public void executeOrder(java.lang.String order,
                         Script script,
                         Dictionary dictionary,
                         TLVBuffer blackboard)
                  throws CardServiceException,
                         CardTerminalException
Executes a given order within the given script, using optional dictionary and optional blackboard.
Parameters:
order - the name of the script procedure to be executed
script - the script containing the procedure that shall be executed
dictionary - the dictionary to be used (optional)
blackboard - the blackbaord to be used (optional)