Source code for /engineering/autohit-1998/autohit/vm/VMIEnv.javaOriginal file VMIEnv.java
   1 /**
   2  * .
   3  * Copyright � 1999 Erich P G.
   4  *
   5  */
   6  
   7 package autohit.vm;
   8 
   9 import java.io.Serializable;
  10 
  11 /**
  12  * A Virtual Machine instruction.  Is an Name/value pair for an environment var that
  13  * is to be passed to a Sim.  Yes, this is a bit of a hack.  :D
  14  *
  15  * @see autohit.vm.VMInstruction
  16  *
  17  * @author Erich P. Gatejen
  18  * @version 1.0
  19  * <i>Version History</i>
  20  * <code>EPG - Initial - 8Mar99</code> 
  21  * 
  22  */
  23 public class VMIEnv extends VMInstruction {
  24 	
  25 	// --- FINAL FIELDS ------------------------------------------------------	
  26 
  27 	// --- FIELDS ------------------------------------------------------------
  28 
  29     /**
  30      *  Variable name.
  31      *  @serial
  32      */      	    
  33     public String           name;
  34     
  35     /**
  36      *  Variable value.
  37      *  @serial
  38      */      	    
  39     public String           value;  
  40 
  41 	// --- PUBLIC METHODS ----------------------------------------------------	
  42 
  43     /**
  44      *  Default constructor.
  45      */ 
  46     public VMIEnv() {
  47         nToken = VMInstruction.ENV;   
  48     }
  49 
  50     /**
  51      *  Dump this Instruction.  Mostly for debugging.
  52      *
  53      *  @return a String containing the dump.
  54      */
  55     public String toString() {
  56         StringBuffer d = new StringBuffer();        
  57         d.append(" VMIEnv ------------------------- \n");
  58         d.append("    name = " + name + "\n");
  59         d.append("    value = " + value + "\n");
  60         return d.toString();                
  61     }
  62     
  63 	// --- PRIVATE METHODS ---------------------------------------------------
  64 
  65 }