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
/*----- 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
//=================================================

Graziano Scalamera
committed
//--------------------------------------------------------
/**
* Method : Alarm::is_audibleAlarm_allowed()
* Description : Execution allowed for audibleAlarm attribute
*/
//--------------------------------------------------------
bool Alarm::is_audibleAlarm_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for audibleAlarm attribute in read access.
/*----- PROTECTED REGION ID(Alarm::audibleAlarmStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::audibleAlarmStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_StatisticsResetTime_allowed()
* Description : Execution allowed for StatisticsResetTime attribute
*/
//--------------------------------------------------------
bool Alarm::is_StatisticsResetTime_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for StatisticsResetTime attribute in read access.
/*----- PROTECTED REGION ID(Alarm::StatisticsResetTimeStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::StatisticsResetTimeStateAllowed_READ
return true;
}

Graziano Scalamera
committed
//--------------------------------------------------------
/**
* 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;
}

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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
//--------------------------------------------------------
/**
* Method : Alarm::is_normalAlarms_allowed()
* Description : Execution allowed for normalAlarms attribute
*/
//--------------------------------------------------------
bool Alarm::is_normalAlarms_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for normalAlarms attribute in read access.
/*----- PROTECTED REGION ID(Alarm::normalAlarmsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::normalAlarmsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_unacknowledgedAlarms_allowed()
* Description : Execution allowed for unacknowledgedAlarms attribute
*/
//--------------------------------------------------------
bool Alarm::is_unacknowledgedAlarms_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for unacknowledgedAlarms attribute in read access.
/*----- PROTECTED REGION ID(Alarm::unacknowledgedAlarmsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::unacknowledgedAlarmsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_acknowledgedAlarms_allowed()
* Description : Execution allowed for acknowledgedAlarms attribute
*/
//--------------------------------------------------------
bool Alarm::is_acknowledgedAlarms_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for acknowledgedAlarms attribute in read access.
/*----- PROTECTED REGION ID(Alarm::acknowledgedAlarmsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::acknowledgedAlarmsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_unacknowledgedNormalAlarms_allowed()
* Description : Execution allowed for unacknowledgedNormalAlarms attribute
*/
//--------------------------------------------------------
bool Alarm::is_unacknowledgedNormalAlarms_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for unacknowledgedNormalAlarms attribute in read access.
/*----- PROTECTED REGION ID(Alarm::unacknowledgedNormalAlarmsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::unacknowledgedNormalAlarmsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_shelvedAlarms_allowed()
* Description : Execution allowed for shelvedAlarms attribute
*/
//--------------------------------------------------------
bool Alarm::is_shelvedAlarms_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for shelvedAlarms attribute in read access.
/*----- PROTECTED REGION ID(Alarm::shelvedAlarmsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::shelvedAlarmsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_outOfServiceAlarms_allowed()
* Description : Execution allowed for outOfServiceAlarms attribute
*/
//--------------------------------------------------------
bool Alarm::is_outOfServiceAlarms_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for outOfServiceAlarms attribute in read access.
/*----- PROTECTED REGION ID(Alarm::outOfServiceAlarmsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::outOfServiceAlarmsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_silencedAlarms_allowed()
* Description : Execution allowed for silencedAlarms attribute
*/
//--------------------------------------------------------
bool Alarm::is_silencedAlarms_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for silencedAlarms attribute in read access.
/*----- PROTECTED REGION ID(Alarm::silencedAlarmsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::silencedAlarmsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_listAlarms_allowed()
* Description : Execution allowed for listAlarms attribute
*/
//--------------------------------------------------------
bool Alarm::is_listAlarms_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for listAlarms attribute in read access.
/*----- PROTECTED REGION ID(Alarm::listAlarmsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::listAlarmsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_frequencyAlarms_allowed()
* Description : Execution allowed for frequencyAlarms attribute
*/
//--------------------------------------------------------
bool Alarm::is_frequencyAlarms_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for frequencyAlarms attribute in read access.
/*----- PROTECTED REGION ID(Alarm::frequencyAlarmsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::frequencyAlarmsStateAllowed_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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
//=================================================
// 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;
}
//--------------------------------------------------------
/**

Graziano Scalamera
committed
* Method : Alarm::is_SearchAlarm_allowed()
* Description : Execution allowed for SearchAlarm attribute

Graziano Scalamera
committed
*/
//--------------------------------------------------------

Graziano Scalamera
committed
bool Alarm::is_SearchAlarm_allowed(TANGO_UNUSED(const CORBA::Any &any))

Graziano Scalamera
committed
{

Graziano Scalamera
committed
// Not any excluded states for SearchAlarm command.
/*----- PROTECTED REGION ID(Alarm::SearchAlarmStateAllowed) ENABLED START -----*/

Graziano Scalamera
committed

Graziano Scalamera
committed
/*----- PROTECTED REGION END -----*/ // Alarm::SearchAlarmStateAllowed

Graziano Scalamera
committed
return true;
}
//--------------------------------------------------------
/**

Graziano Scalamera
committed
* Method : Alarm::is_StopAudible_allowed()
* Description : Execution allowed for StopAudible attribute

Graziano Scalamera
committed
*/
//--------------------------------------------------------

Graziano Scalamera
committed
bool Alarm::is_StopAudible_allowed(TANGO_UNUSED(const CORBA::Any &any))

Graziano Scalamera
committed
{

Graziano Scalamera
committed
// Not any excluded states for StopAudible command.
/*----- PROTECTED REGION ID(Alarm::StopAudibleStateAllowed) ENABLED START -----*/

Graziano Scalamera
committed

Graziano Scalamera
committed
/*----- PROTECTED REGION END -----*/ // Alarm::StopAudibleStateAllowed

Graziano Scalamera
committed
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
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;
}

Graziano Scalamera
committed
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
//--------------------------------------------------------
/**
* Method : Alarm::is_Shelve_allowed()
* Description : Execution allowed for Shelve attribute
*/
//--------------------------------------------------------
bool Alarm::is_Shelve_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Shelve command.
/*----- PROTECTED REGION ID(Alarm::ShelveStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::ShelveStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_Enable_allowed()
* Description : Execution allowed for Enable attribute
*/
//--------------------------------------------------------
bool Alarm::is_Enable_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Enable command.
/*----- PROTECTED REGION ID(Alarm::EnableStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::EnableStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_Disable_allowed()
* Description : Execution allowed for Disable attribute
*/
//--------------------------------------------------------
bool Alarm::is_Disable_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Disable command.
/*----- PROTECTED REGION ID(Alarm::DisableStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::DisableStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : Alarm::is_ResetStatistics_allowed()
* Description : Execution allowed for ResetStatistics attribute
*/
//--------------------------------------------------------
bool Alarm::is_ResetStatistics_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for ResetStatistics command.
/*----- PROTECTED REGION ID(Alarm::ResetStatisticsStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Alarm::ResetStatisticsStateAllowed
return true;
}

Graziano Scalamera
committed
/*----- PROTECTED REGION ID(Alarm::AlarmStateAllowed.AdditionalMethods) ENABLED START -----*/
// Additional Methods
/*----- PROTECTED REGION END -----*/ // Alarm::AlarmStateAllowed.AdditionalMethods
} // End of namespace