package keeping;
import database.*;
/**
This is the printer map. It is where a printer type, such as 'receipt', is matched against a printer name such as "Epson TM-T88III".
<p>
There are seven different types of printers, except that the first of which is void, basically "No Printing". That is index zero.
*/
public abstract class PRT
// Please changfe from abstr4act to final
{
/** Load the list of selected physical printers from file. */
public PRT()
{
// not implemented.
}
/** Just delete the document.*/
public static int NO_PRINTING = 0;
/** Sometimes, it is quicker to request things from the barman using in print.*/
public static int BAR_A = 1;
/** Dunno why this is here. Flexibility, I suppose.*/
public static int BAR_B = 2;
/** For restaurants. When an item is requested, it can be sent here. The staff will then know to make it.*/
public static int KITCHEN_A = 3;
/** For big kitchens. */
public static int KITCHEN_B = 4;
/** When an order is placed, or positively closed (delivered from the supplier). */
public static int ORDER = 5;
/** When a sale is completed. */
public static int RECEIPT = 6;
/**
Resolve the virtual type of printer into a real printer printer name.
@param wanted One of the static fields in this class.
@return An operating system-compatible printer name.
*/
public abstract String getMap(int wanted);
/**
The user bought a new printer.
@param virtual A field in this class.
@param physical A printer name. A real one.
*/
public abstract void setMap(int virtual, String physical);
/** Test case. */
public static void main (String[] ignore)
{
// Please implement.
}
}