Emergency 20 Dokumentation  4.2.0
ParticleTimeControlComponent-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Namespace ]
6 //[-------------------------------------------------------]
7 namespace em5
8 {
9 
10 
11  //[-------------------------------------------------------]
12  //[ Public methods ]
13  //[-------------------------------------------------------]
15  qsf::Component(prototype),
16  mEarliestOnTime(qsf::Time::fromHours(20.0f)),
17  mLatestOnTime(qsf::Time::fromHours(21.0f)),
18  mEarliestOffTime(qsf::Time::fromHours(7.0f)),
19  mLatestOffTime(qsf::Time::fromHours(8.0f)),
20  mOnTime(qsf::Time::ZERO),
21  mOffTime(qsf::Time::ZERO),
22  mOnStatus(false)
23  {
24  }
25 
27  {
28  // Noting here
29  }
30 
32  {
33  return mEarliestOnTime;
34  }
35 
37  {
38  return mLatestOnTime;
39  }
40 
42  {
43  return mEarliestOffTime;
44  }
45 
47  {
48  return mLatestOffTime;
49  }
50 
51 
52 //[-------------------------------------------------------]
53 //[ Namespace ]
54 //[-------------------------------------------------------]
55 } // em5
Definition: ActionPriority.h:13
const qsf::Time getLatestOnTime() const
Return the time when the sign lights and linked lights should be latest switched on.
Definition: ParticleTimeControlComponent-inl.h:36
virtual ~ParticleTimeControlComponent()
Destructor.
Definition: ParticleTimeControlComponent-inl.h:26
const qsf::Time getLatestOffTime() const
Return the time when the sign lights and linked lights should be latest switched off.
Definition: ParticleTimeControlComponent-inl.h:46
Definition: PickupPersonByParamedicAction.h:21
const qsf::Time getEarliestOffTime() const
Return the time when the sign lights and linked lights should be earliest switched off...
Definition: ParticleTimeControlComponent-inl.h:41
Prototype class.
Definition: Prototype.h:100
ParticleTimeControlComponent(qsf::Prototype *prototype)
Constructor.
Definition: ParticleTimeControlComponent-inl.h:14
const qsf::Time getEarliestOnTime() const
Return the time when the sign lights and linked lights should be earliest switched on...
Definition: ParticleTimeControlComponent-inl.h:31
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32