Newer
Older
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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
/*----- PROTECTED REGION ID(ConexAgpStateMachine.cpp) ENABLED START -----*/
static const char *RcsId = "$Id: ConexAgpStateMachine.cpp,v 1.1 2017-12-21 11:26:12 graziano Exp $";
//=============================================================================
//
// file : ConexAgpStateMachine.cpp
//
// description : State machine file for the ConexAgp class
//
// project : Newport ConexAgp Agilis-D controller
//
// 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: graziano $
//
// $Revision: 1.1 $
// $Date: 2017-12-21 11:26:12 $
//
// $HeadURL: $
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#include <ConexAgp.h>
/*----- PROTECTED REGION END -----*/ // ConexAgp::ConexAgpStateMachine.cpp
//================================================================
// States | Description
//================================================================
namespace ConexAgp_ns
{
//=================================================
// Attributes Allowed Methods
//=================================================
//--------------------------------------------------------
/**
* Method : ConexAgp::is_Position_allowed()
* Description : Execution allowed for Position attribute
*/
//--------------------------------------------------------
bool ConexAgp::is_Position_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for Position attribute in Write access.
/*----- PROTECTED REGION ID(ConexAgp::PositionStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // ConexAgp::PositionStateAllowed_WRITE
// Not any excluded states for Position attribute in read access.
/*----- PROTECTED REGION ID(ConexAgp::PositionStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // ConexAgp::PositionStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : ConexAgp::is_TargetPosition_allowed()
* Description : Execution allowed for TargetPosition attribute
*/
//--------------------------------------------------------
bool ConexAgp::is_TargetPosition_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for TargetPosition attribute in read access.
/*----- PROTECTED REGION ID(ConexAgp::TargetPositionStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // ConexAgp::TargetPositionStateAllowed_READ
return true;
}
//=================================================
// Commands Allowed Methods
//=================================================
//--------------------------------------------------------
/**
* Method : ConexAgp::is_Homing_allowed()
* Description : Execution allowed for Homing attribute
*/
//--------------------------------------------------------
bool ConexAgp::is_Homing_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Homing command.
/*----- PROTECTED REGION ID(ConexAgp::HomingStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // ConexAgp::HomingStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : ConexAgp::is_Stop_allowed()
* Description : Execution allowed for Stop attribute
*/
//--------------------------------------------------------
bool ConexAgp::is_Stop_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Stop command.
/*----- PROTECTED REGION ID(ConexAgp::StopStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // ConexAgp::StopStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : ConexAgp::is_GetVersion_allowed()
* Description : Execution allowed for GetVersion attribute
*/
//--------------------------------------------------------
bool ConexAgp::is_GetVersion_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for GetVersion command.
/*----- PROTECTED REGION ID(ConexAgp::GetVersionStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // ConexAgp::GetVersionStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : ConexAgp::is_Reset_allowed()
* Description : Execution allowed for Reset attribute
*/
//--------------------------------------------------------
bool ConexAgp::is_Reset_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Reset command.
/*----- PROTECTED REGION ID(ConexAgp::ResetStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // ConexAgp::ResetStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : ConexAgp::is_Backward_allowed()
* Description : Execution allowed for Backward attribute
*/
//--------------------------------------------------------
bool ConexAgp::is_Backward_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Backward command.
/*----- PROTECTED REGION ID(ConexAgp::BackwardStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // ConexAgp::BackwardStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : ConexAgp::is_Forward_allowed()
* Description : Execution allowed for Forward attribute
*/
//--------------------------------------------------------
bool ConexAgp::is_Forward_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Forward command.
/*----- PROTECTED REGION ID(ConexAgp::ForwardStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // ConexAgp::ForwardStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : ConexAgp::is_Enable_allowed()
* Description : Execution allowed for Enable attribute
*/
//--------------------------------------------------------
bool ConexAgp::is_Enable_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Enable command.
/*----- PROTECTED REGION ID(ConexAgp::EnableStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // ConexAgp::EnableStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : ConexAgp::is_Disable_allowed()
* Description : Execution allowed for Disable attribute
*/
//--------------------------------------------------------
bool ConexAgp::is_Disable_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Disable command.
/*----- PROTECTED REGION ID(ConexAgp::DisableStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // ConexAgp::DisableStateAllowed
return true;
}
/*----- PROTECTED REGION ID(ConexAgp::ConexAgpStateAllowed.AdditionalMethods) ENABLED START -----*/
// Additional Methods
/*----- PROTECTED REGION END -----*/ // ConexAgp::ConexAgpStateAllowed.AdditionalMethods
} // End of namespace