Source code for /engineering/autohit-1998/autohit/vm/VMISim.javaOriginal file VMISim.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.  This encapsulates a Sim.  it specifies it by
  13  * name.  it is up to the specific VM to load the Sim given the name.
  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 - 8Mar</code> 
  21  * 
  22  */
  23 public class VMISim extends VMInstruction {
  24 	
  25 	// --- FINAL FIELDS ------------------------------------------------------	
  26 
  27 	// --- FIELDS ------------------------------------------------------------
  28 
  29     /**
  30      *  Variable name.
  31      *  @serial
  32      */      	    
  33     public String           name;
  34 
  35 
  36     /**
  37      *  Chute value.  Default is 0.
  38      *  @serial
  39      */      	    
  40     public String           chute;
  41     
  42 	// --- PUBLIC METHODS ----------------------------------------------------	
  43 
  44     /**
  45      *  Default constructor.
  46      */ 
  47     public VMISim() {
  48         nToken = VMInstruction.SIM;
  49     }
  50 
  51     /**
  52      *  Dump this Instruction.  Mostly for debugging.
  53      *
  54      *  @return a String containing the dump.
  55      */
  56     public String toString() {
  57         StringBuffer d = new StringBuffer();        
  58         d.append(" VMISim ---------------------------- \n");
  59         d.append("    name = " + name + "\n");
  60         d.append("    chute = " + chute + "\n");
  61         return d.toString();                
  62     }
  63     
  64 	// --- PRIVATE METHODS ---------------------------------------------------
  65 
  66 }