SimuPac 2.0(r200)
Simulates several PacMan nodes

SimuPac.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2008-2010 by Matthias Nagl                              *
00003  *   mnagl@uni-goettingen.de                                               *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 #ifndef SIMUPAC_H
00022 #define SIMUPAC_H
00023 
00024 #define PACMASTERABOUT "\
00025 <p><b>SimuPac</b></p><p>simulates several PacMan nodes and generates synthetic events</p>\
00026 <p>This application creates coincident events simulating several detectors and sends them \
00027 trough one network connection per simulated detector emulating the communication \
00028 behaviour of PacMan.</p>"
00029 
00030 #include <QMainWindow>
00031 #include <QPointer>
00032 #include "ui_SimuPacMainWindow.h"
00033 
00034 class PacSimulatedNode;
00035 class PacIntermediateState;
00036 class PacEventCreator;
00037 class QProgressDialog;
00038 
00044 class SimuPac : public QMainWindow, private Ui::SimuPacMainWindow
00045 {
00046 Q_OBJECT
00047 public:
00048     explicit SimuPac(QWidget *parent = 0);
00049     ~SimuPac();
00050 
00051     const static int chunksize;
00052 
00053 signals:
00054 
00055 public slots:
00056     void startCreation();
00057     void stopCreation();
00058 
00059 private slots:
00060     void on_actionAbout_triggered();
00061 
00062 private:
00063     QList<PacSimulatedNode*> nodes;
00064     QList<PacIntermediateState*> states;
00065     double detectionprobability;
00066     double solidanglecoverage;
00067     PacEventCreator *creator;
00068     QPointer<QProgressDialog> progress;
00069 };
00070 
00071 #endif // SIMUPAC_H
 All Classes Namespaces Files Functions Variables Enumerations Properties Friends Defines