M1M3 Support System
Loading...
Searching...
No Matches
StaticStateFactory.h
1/*
2 * This file is part of LSST M1M3 support system package.
3 *
4 * Developed for the Vera C. Rubin Telescope and Site System.
5 * This product includes software developed by the LSST Project
6 * (https://www.lsst.org).
7 * See the COPYRIGHT file at the top-level directory of this distribution
8 * for details of code ownership.
9 *
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <https://www.gnu.org/licenses/>.
22 */
23
24#ifndef STATICSTATEFACTORY_H_
25#define STATICSTATEFACTORY_H_
26
27#include <ActiveEngineeringState.h>
28#include <ActiveState.h>
29#include <DisabledState.h>
30#include <FaultState.h>
31#include <LoweringEngineeringState.h>
32#include <LoweringFaultState.h>
33#include <LoweringState.h>
34#include <OfflineState.h>
35#include <ParkedEngineeringState.h>
36#include <ParkedState.h>
37#include <PausedLoweringEngineeringState.h>
38#include <PausedLoweringState.h>
39#include <PausedRaisingEngineeringState.h>
40#include <PausedRaisingState.h>
41#include <ProfileHardpointCorrectionState.h>
42#include <RaisingEngineeringState.h>
43#include <RaisingState.h>
44#include <StandbyState.h>
45
46namespace LSST {
47namespace M1M3 {
48namespace SS {
49
51public:
53
54 static StaticStateFactory &get();
55
56 State *create(States::Type state);
57
58private:
59 StaticStateFactory &operator=(const StaticStateFactory &) = delete;
60 StaticStateFactory(const StaticStateFactory &) = delete;
61
62 OfflineState _offlineState;
63 StandbyState _standbyState;
64 DisabledState _disabledState;
65 ParkedState _parkedState;
66 RaisingState _raisingState;
67 ActiveState _activeState;
68 LoweringState _loweringState;
69 ParkedEngineeringState _parkedEngineeringState;
70 RaisingEngineeringState _raisingEngineeringState;
71 ActiveEngineeringState _activeEngineeringState;
72 LoweringEngineeringState _loweringEngineeringState;
73 FaultState _faultState;
74 LoweringFaultState _loweringFaultState;
75 ProfileHardpointCorrectionState _profileHardpointCorrectionState;
76 PausedRaisingState _pausedRaisingState;
77 PausedRaisingEngineeringState _pausedRaisingEngineeringState;
78 PausedLoweringState _pausedLoweringState;
79 PausedLoweringEngineeringState _pausedLoweringEngineeringState;
80};
81
82} /* namespace SS */
83} /* namespace M1M3 */
84} /* namespace LSST */
85
86#endif /* STATICSTATEFACTORY_H_ */
Active Engineering state.
Definition ActiveEngineeringState.h:39
Active State.
Definition ActiveState.h:38
Disabled state.
Definition DisabledState.h:38
Fault state.
Definition FaultState.h:37
Lowering mirror in engineering state.
Definition LoweringEngineeringState.h:37
Lowering mirror during fault.
Definition LoweringFaultState.h:38
Lowering mirror.
Definition LoweringState.h:37
Offline state.
Definition OfflineState.h:38
Parked Engineering State.
Definition ParkedEngineeringState.h:37
Parked state.
Definition ParkedState.h:38
Pause lowering mirror in engineering state.
Definition PausedLoweringEngineeringState.h:41
Pause mirror lowering.
Definition PausedLoweringState.h:41
Raises mirror in engineering state.
Definition PausedRaisingEngineeringState.h:41
Raises mirror in engineering state.
Definition PausedRaisingState.h:41
Definition ProfileHardpointCorrectionState.h:35
Raises mirror in engineering state.
Definition RaisingEngineeringState.h:41
State during mirror raise.
Definition RaisingState.h:41
State between Offline and Enabled sub-states.
Definition StandbyState.h:40
Abstract class for M1M3 state.
Definition State.h:94
Definition StaticStateFactory.h:50