ATLAS Offline Software
VP1Prioritiser.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // //
7 // Header file for class VP1Prioritiser //
8 // //
9 // Author: Thomas Kittelmann <Thomas.Kittelmann@cern.ch> //
10 // //
11 // Initial version: April 2007 //
12 // //
14 
15 #ifndef VP1PRIORITISER_H
16 #define VP1PRIORITISER_H
17 
18 #include <QObject>
19 class IVP1System;
20 class IVP1ChannelWidget;
21 
22 class VP1Prioritiser : public QObject {
23 
24  Q_OBJECT
25 
26 public:
27 
28  VP1Prioritiser(QObject*parent);
29  virtual ~VP1Prioritiser();
30 
31  double beginTiming_Refresh(IVP1System*);//Returns an estimate based on earlier measurements
32  double elapsedTiming_Refresh();
33  double endTiming_Refresh();//Returns timing
34 
35  IVP1System* nextErasedActiveSystemByPriority();//Returns 0 if there are no systems with (ActiveState,State)==(ON,ERASED)
36  QList<IVP1System*> getSystemsToEraseByPriority();//Returns all systems in REFRESHED state - in prioritised order.
37 
38  double estimateRemainingCalcTime() const;
39 
40 public Q_SLOTS:
41  void visibleChannelsChanged(const QSet<IVP1ChannelWidget*>&vis,const QSet<IVP1ChannelWidget*>&soonvis,const double& soonvisbonus);
44 private:
45  class Imp;
46  Imp * m_d;
48 };
49 
50 #endif
VP1Prioritiser::nextErasedActiveSystemByPriority
IVP1System * nextErasedActiveSystemByPriority()
Definition: VP1Prioritiser.cxx:208
VP1Prioritiser::getSystemsToEraseByPriority
QList< IVP1System * > getSystemsToEraseByPriority()
Definition: VP1Prioritiser.cxx:218
VP1Prioritiser::setupSysItr
void setupSysItr(IVP1ChannelWidget *cw)
Definition: VP1Prioritiser.cxx:271
VP1Prioritiser::VP1Prioritiser
VP1Prioritiser(QObject *parent)
Definition: VP1Prioritiser.cxx:191
VP1Prioritiser::~VP1Prioritiser
virtual ~VP1Prioritiser()
Definition: VP1Prioritiser.cxx:201
IVP1System
Definition: IVP1System.h:36
VP1Prioritiser::channelCreated
void channelCreated(IVP1ChannelWidget *)
Definition: VP1Prioritiser.cxx:305
VP1Prioritiser
Definition: VP1Prioritiser.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VP1Prioritiser::endTiming_Refresh
double endTiming_Refresh()
Definition: VP1Prioritiser.cxx:259
VP1Prioritiser::channelUncreated
void channelUncreated(IVP1ChannelWidget *)
Definition: VP1Prioritiser.cxx:319
IVP1ChannelWidget
Definition: IVP1ChannelWidget.h:34
VP1Prioritiser::beginTiming_Refresh
double beginTiming_Refresh(IVP1System *)
Definition: VP1Prioritiser.cxx:242
VP1Prioritiser::visibleChannelsChanged
void visibleChannelsChanged(const QSet< IVP1ChannelWidget * > &vis, const QSet< IVP1ChannelWidget * > &soonvis, const double &soonvisbonus)
Definition: VP1Prioritiser.cxx:289
VP1Prioritiser::Imp
Definition: VP1Prioritiser.cxx:30
VP1Prioritiser::elapsedTiming_Refresh
double elapsedTiming_Refresh()
Definition: VP1Prioritiser.cxx:253
VP1Prioritiser::estimateRemainingCalcTime
double estimateRemainingCalcTime() const
Definition: VP1Prioritiser.cxx:230
VP1Prioritiser::m_d
Imp * m_d
Definition: VP1Prioritiser.h:45