Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

visualization/SSampleDialog.h

Go to the documentation of this file.
00001 /* #start# ***********************************************************
00002 
00003                              Scheduling Simulator
00004                     Lehrstuhl f"ur Effiziente Algorithmen
00005                        Technische Universit"at M"unchen
00006 
00007  File    : $Id: SSampleDialog.h,v 1.8 2003/04/12 11:34:57 meierb Exp $
00008 
00009  Purpose : This dialog is used the set the parameters for the sample 
00010            generator. On generate, it creates a new tasksystem with the
00011      given parameters and saves it to file.
00012 
00013  RCS-Log:
00014  $Log: SSampleDialog.h,v $
00015  Revision 1.8  2003/04/12 11:34:57  meierb
00016  some comments added
00017 
00018  Revision 1.7  2003/03/24 13:20:28  meierb
00019  some more minor changes
00020 
00021  Revision 1.6  2003/03/24 10:39:25  meierb
00022  minor changes to make chekced-in algorithms work.
00023  still not perfect because problems exist with SAlexTest.cpp & const
00024 
00025  Revision 1.5  2003/01/08 18:57:15  meierb
00026  added randomized release times
00027 
00028  Revision 1.9  2003/01/08 15:29:33  meierb
00029  schlcht gelaufen mit der Pruefung
00030 
00031  Revision 1.8  2003/01/03 09:05:32  meierb
00032  worked at JobPropDialog and added new distribution
00033 
00034  Revision 1.7  2002/12/30 22:35:14  meierb
00035  bin mal gespannt warum _rate nicht genommen wird
00036 
00037  Revision 1.6  2002/12/11 22:27:04  meierb
00038  *** empty log message ***
00039 
00040  Revision 1.5  2002/12/11 19:15:13  meierb
00041  *** empty log message ***
00042 
00043  Revision 1.4  2002/12/10 23:26:39  meierb
00044  *** empty log message ***
00045 
00046  Revision 1.3  2002/12/05 13:45:33  meierb
00047  fgsdagkhsjkh
00048 
00049  Revision 1.2  2002/12/03 17:05:22  meierb
00050  little changes for new files
00051 
00052  Revision 1.1.1.1  2002/12/02 22:26:19  meierb
00053  my_schedule
00054 
00055  Revision 1.3  2002/11/26 16:56:50  taeubig
00056  Added choice for uniform and unrelated environment,
00057  added choice for job topology (but has no effect yet)
00058 
00059  Revision 1.2  2002/11/11 16:19:36  taeubig
00060  changes in header inclusion
00061 
00062  Revision 1.1  2002/08/29 12:59:59  taeubig
00063  Added the sources
00064 
00065  Revision 1.3  2001/05/16 13:20:04  taeubig
00066  QT headers are included last because of "slots" conflict
00067 
00068  Revision 1.2  2000/01/16 18:43:04  kern
00069  java docs
00070 
00071  Revision 1.1  2000/01/13 11:52:32  kern
00072  added sample dialog
00073 
00074 
00075  * #end# ************************************************************* */   
00076 #ifndef SSAMPLEDIALOG_H
00077 #define SSAMPLEDIALOG_H
00078 
00079 // system header files
00080 
00081 // project header files
00082 #include "../model/SSampleGen.h"
00083 #include "SJobPropDialog.h"
00084 
00085 // QT header files
00086 #include <qdialog.h>
00087 #include <qpushbutton.h>
00088 #include <qradiobutton.h>
00089 #include <qcombobox.h>
00090 #include <qradiobutton.h>
00091 #include <qlabel.h> 
00092 #include <qhbox.h>
00093 #include <qlineedit.h>
00094 #include <qbuttongroup.h>
00095 #include <qvgroupbox.h>
00096 
00102 class SSampleDialog : public QDialog
00103 {
00104   Q_OBJECT
00105     
00106 public:
00109   SSampleDialog( QWidget *parent, const char *name );
00110   ~SSampleDialog();
00111 
00116   QString getDestinationFile() {
00117     return _currFile;
00118   };
00119   
00121   char* getTypeString(bool type);
00122   char* getDistString(SProbabilityDist::Type type);
00123  
00124 private: 
00125   SSampleGen *pGenerator;
00126   // the buttons on the bottom of the dialog.
00127   QPushButton *_pCancelBtn, *_pOKBtn;
00128   // some widgets for the different settings
00129   QLineEdit *_pNumMachEdit, *_pNumJobsEdit;
00130   QLineEdit *_pDestFileEdit;
00131   QButtonGroup *_pEnvClassGroup, *_pMachTopoGroup, *_pJobTopoGroup;
00132   int _envClassP, _envClassQ, _envClassR, _envClassO, _envClassF, _envClassJ, _envClassZ;
00133   int _machTopoSingle, _machTopoLine, _machTopoSet, _machTopoMesh;
00134   int _jobTopoSingle, _jobTopoLine, _jobTopoSet, _jobTopoMesh;
00135   int random, known;
00137   QString _currFile;
00138   QButtonGroup *_pJobPropGroup;
00139   QHBox *pJobPropHBox;
00140   QLabel *_pProcTimeLabel;
00141   QLabel *_pRelTimeLabel;
00142   /* job properties */
00143   bool _randomProcTime;
00144   bool _randomRelTime;
00145   double _pval1;
00146   double _pval2;
00147   double _rval1;
00148   // this parameter is just a dummy, because for some reasons
00149   // values are not passed correctly by SJobPropDialog
00150   double _dummy_rval;
00151   SProbabilityDist::Type _procTimeDistType;
00152   SProbabilityDist::Type _relTimeDistType;
00153   SProbabilityDist* _pRelTimeDist;
00154   // variables for presenting job properties
00155   char* _procTimeDistString;
00156   char* _relTimeDistString;
00157   char* _procTimeType;
00158   char* _relTimeType;
00159   SJobPropDialog *pJobPropDlg;
00160 
00161 private slots:
00166     void generate();
00168     void getJobProps();
00169 public: // Public attributes
00170   
00171 };
00172 
00173 #endif //SSAMPLEDIALOG_H

Generated on Thu May 22 16:48:09 2003 for Sketch-it! by doxygen1.2.18