autohit.common.channels
Class QueueReceipt
java.lang.Object
autohit.common.channels.Receipt
autohit.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 channelname
- Name of the the drainnumbered
- Number of the enqueue.
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.