00001 #ifndef CRANEREQUESTQ_INCLUDED
00002 #define CRANEREQUESTQ_INCLUDED
00003
00004 #include <odem.h>
00005
00006 #include "Automation.h"
00007
00008
00009 const int DONE = -1;
00010
00011 const int EMPTYfurnace = 1;
00012 const int NEXTpalette = 2;
00013 const int OUTstorage = 3;
00014 const int INstorage = 4;
00015 const int INbath = 5;
00016 const int INair = 6;
00017 const int OUTair = 7;
00018 const int NEXTbath = 8;
00019 const int FINALoutAir = 9;
00020 const int OUTbath = 10;
00021 const int READYfurnace = 11;
00022
00023 class CraneRequestq: public Condq {
00024
00025 public:
00026 int
00027 emptyFurnace,
00028 outStorage,
00029 nextPalette,
00030 inStorage,
00031 inBath,
00032 inAir,
00033 outAir,
00034 nextBath,
00035 finalOutAir,
00036 outBath,
00037 readyFurnace;
00038
00039 int
00040 emptyFurnaceNo,
00041 outStorageNo,
00042 nextPaletteNo,
00043 inStorageNo,
00044 inBathNo,
00045 inAirNo,
00046 outAirNo,
00047 outBathNo,
00048 nextBathNo,
00049 finalOutAirNo,
00050 readyFurnaceNo;
00051
00052 void requestSignal(int r);
00053
00054
00055 int highestRequestType();
00056
00057
00058 void reduceRequests(int r);
00059
00060
00061 CraneRequestq(char *id);
00062 };
00063
00064 #endif
00065