Newer
Older

Graziano Scalamera
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*----- PROTECTED REGION ID(AlarmStateMachine.cpp) ENABLED START -----*/
static const char *RcsId = "$Id: $";
//=============================================================================
//
// file : AlarmStateMachine.cpp
//
// description : State machine file for the Alarm class
//
// project : alarm
//
// This file is part of Tango device class.
//
// Tango is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Tango is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Tango. If not, see <http://www.gnu.org/licenses/>.
//
// $Author: $
//
// $Revision: $
// $Date: $
//
// $HeadURL: $
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#include <Alarm.h>
/*----- PROTECTED REGION END -----*/ // Alarm::AlarmStateMachine.cpp
//================================================================
// States | Description
//================================================================
namespace Alarm_ns
{
//=================================================
// Attributes Allowed Methods
//=================================================
//--------------------------------------------------------
/**
* Method : Alarm::is_alarm_allowed()
* Description : Execution allowed for alarm attribute
*/
//--------------------------------------------------------
bool Alarm::is_alarm_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for alarm attribute in read access.
/*----- PROTECTED REGION ID(Alarm::alarmStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::alarmStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_AlarmState_allowed()
* Description : Execution allowed for AlarmState attribute
*/
//--------------------------------------------------------
bool Alarm::is_AlarmState_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for AlarmState attribute in read access.
/*----- PROTECTED REGION ID(Alarm::AlarmStateStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::AlarmStateStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_AlarmFormula_allowed()
* Description : Execution allowed for AlarmFormula attribute
*/
//--------------------------------------------------------
bool Alarm::is_AlarmFormula_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for AlarmFormula attribute in read access.
/*----- PROTECTED REGION ID(Alarm::AlarmFormulaStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::AlarmFormulaStateAllowed_READ
return true;
}

Graziano Scalamera
committed
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
//=================================================
// Commands Allowed Methods
//=================================================
//--------------------------------------------------------
/**
* Method : Alarm::is_Ack_allowed()
* Description : Execution allowed for Ack attribute
*/
//--------------------------------------------------------
bool Alarm::is_Ack_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Ack command.
/*----- PROTECTED REGION ID(Alarm::AckStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::AckStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_Load_allowed()
* Description : Execution allowed for Load attribute
*/
//--------------------------------------------------------
bool Alarm::is_Load_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Load command.
/*----- PROTECTED REGION ID(Alarm::LoadStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::LoadStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_Remove_allowed()
* Description : Execution allowed for Remove attribute
*/
//--------------------------------------------------------
bool Alarm::is_Remove_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Remove command.
/*----- PROTECTED REGION ID(Alarm::RemoveStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::RemoveStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_Configured_allowed()
* Description : Execution allowed for Configured attribute
*/
//--------------------------------------------------------
bool Alarm::is_Configured_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Configured command.
/*----- PROTECTED REGION ID(Alarm::ConfiguredStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::ConfiguredStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_StopNew_allowed()
* Description : Execution allowed for StopNew attribute
*/
//--------------------------------------------------------
bool Alarm::is_StopNew_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for StopNew command.
/*----- PROTECTED REGION ID(Alarm::StopNewStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::StopNewStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_Silence_allowed()
* Description : Execution allowed for Silence attribute
*/
//--------------------------------------------------------
bool Alarm::is_Silence_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Silence command.
/*----- PROTECTED REGION ID(Alarm::SilenceStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::SilenceStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_Modify_allowed()
* Description : Execution allowed for Modify attribute
*/
//--------------------------------------------------------
bool Alarm::is_Modify_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Modify command.
/*----- PROTECTED REGION ID(Alarm::ModifyStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::ModifyStateAllowed
return true;
}
/*----- PROTECTED REGION ID(Alarm::AlarmStateAllowed.AdditionalMethods) ENABLED START -----*/
// Additional Methods
/*----- PROTECTED REGION END -----*/ // Alarm::AlarmStateAllowed.AdditionalMethods
} // End of namespace