autohit.common.channels
Class QueueReceipt

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

public class QueueReceipt
extends Receipt

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
 
Fields inherited from class autohit.common.channels.Receipt
info
 
Constructor Summary
QueueReceipt()
          Default constructor.
QueueReceipt(java.lang.String id, java.lang.String name, int numbered)
          Constructor.
 
Method Summary
 java.lang.String getType()
          return the type;
 void setAsInteger(int val)
          Set as an integer.
 
Methods inherited from class autohit.common.channels.Receipt
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueueReceipt

public QueueReceipt()
             throws java.lang.Exception
Default constructor. DONT USE! It will throw an exception!

Throws:
java.lang.Exception

QueueReceipt

public QueueReceipt(java.lang.String id,
                    java.lang.String name,
                    int numbered)
Constructor. Use this one! This will create a non-guaranteeed unique reciept.

Parameters:
id - ID of the channel
name - Name of the the drain
numbered - Number of the enqueue.
Method Detail

getType

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

Overrides:
getType in class Receipt
Returns:
a string representing the type, in this case it is "queue".

setAsInteger

public void setAsInteger(int val)
Set as an integer. This one doesn't do anything!

Overrides:
setAsInteger in class Receipt
Parameters:
val - a value to set as the receipt.


Test.