autohit.common.channels
Class Receipt

java.lang.Object
  extended byautohit.common.channels.Receipt
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
QueueReceipt

public class Receipt
extends java.lang.Object
implements java.io.Serializable

An receipt

Version:
1.0 Version History EPG - Initial - 25Apr03 EPG - Added setAsInteger and toString to enable future expansion - 2Jul03
Author:
Erich P. Gatejen
See Also:
Serialized Form

Field Summary
protected  java.lang.String info
          Generic receipt
 
Constructor Summary
Receipt()
           
 
Method Summary
 java.lang.String getType()
          return the type;
 void setAsInteger(int val)
          default receipt
 java.lang.String toString()
          This is a bit clunky, but I expect real receipt implementations will overload it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

info

protected java.lang.String info
Generic receipt

Constructor Detail

Receipt

public Receipt()
Method Detail

getType

public java.lang.String getType()
return the type;

Returns:
a string representing the type, in this case it is "generic".

setAsInteger

public void setAsInteger(int val)
default receipt

Parameters:
val - a value to set as the receipt.

toString

public java.lang.String toString()
This is a bit clunky, but I expect real receipt implementations will overload it.

Returns:
a string representation of the receipt.


Test.