Source code for /engineering/autohit-2003/src/autohit/system/tellio/TellClientEngine.javaOriginal file TellClientEngine.java
   1 /**
   2  * AUTOHIT 2003
   3  * Copyright Erich P Gatejen (c) 1989,1997,2003,2004
   4  * 
   5  * This program is free software; you can redistribute it and/or modify 
   6  * it under the terms of the GNU General Public License as published by 
   7  * the Free Software Foundation; either version 2 of the License, or (at
   8  * your option) any later version.
   9  * This program is distributed in the hope that it will be useful, but
  10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12  * more details.
  13  * 
  14  * You should have received a copy of the GNU General Public License along
  15  * with this program; if not, write to the Free Software Foundation, Inc.,
  16  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17  *
  18  * Additional license information can be found in the documentation.
  19  * @author Erich P Gatejen
  20  */
  21 package autohit.system.tellio;
  22 
  23 import java.io.Serializable;
  24 //import autohit.common.Constants;
  25 
  26 /**
  27  * TELL IO working engine.
  28  *
  29  * @author Erich P. Gatejen
  30  * @version 1.0
  31  * <i>Version History</i>
  32  * <code>EPG - Initial - 04Jan04<br>
  33  * /code>
  34  */
  35 public class TellClientEngine implements Serializable {
  36 
  37 	final static long serialVersionUID = 1;
  38 	
  39 	/**
  40 	 * TELL tokens
  41 	 */
  42 	public static final int STATE_NONE = 0;
  43 	public static final int STATE_ASKING = 1;
  44 	public static final int STATE_ASKED = 2;
  45 	public static final int STATE_TELLING = 3;
  46 	public static final int STATE_TOLD = 4;
  47 	public static final int STATE_FETCHING = 5;
  48 	public static final int STATE_GAVE = 6;
  49 	public static final int STATE_GETTING_DATA = 7;
  50 	public static final int STATE_GIVING_DATA = 8;
  51 	public static final int STATE_ERROR = 99;
  52 
  53 	/**
  54 	 * instruction
  55 	 * @serial
  56 	 */
  57 	public int state;
  58 
  59 	
  60 	/**
  61 	 *  Initialize the engine.
  62 	 *
  63 	 *  @return a String containing the dump.
  64 	 */
  65 	public void init() {
  66 		state = STATE_NONE;
  67 	}
  68 	
  69 	
  70 	
  71 	
  72 	
  73 }