-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSimulatorStateMachine.cpp
executable file
·108 lines (86 loc) · 3.3 KB
/
SimulatorStateMachine.cpp
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
/*----- PROTECTED REGION ID(SimulatorStateMachine.cpp) ENABLED START -----*/
static const char *RcsId = "$Id: $";
//=============================================================================
//
// file : SimulatorStateMachine.cpp
//
// description : C++ source for the «name» and its alowed
// methods for commands and attributes
//
// project : simulator generator.
//
// $Author: $
//
// $Revision: $
// $Date: $
//
// SVN only:
// $HeadURL: $
//
// CVS only:
// $Source: $
// $Log: $
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#include <Simulator.h>
#include <SimulatorClass.h>
/*----- PROTECTED REGION END -----*/ // Simulator::SimulatorStateMachine.cpp
//================================================================
// States | Description
//================================================================
// ON |
// FAULT |
namespace Simulator_ns
{
//=================================================
// Attributes Allowed Methods
//=================================================
//--------------------------------------------------------
/**
* Method : Simulator::is_Amplitude_allowed()
* Description : Execution allowed for Amplitude attribute
*/
//--------------------------------------------------------
bool Simulator::is_Amplitude_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for Amplitude attribute in read access.
/*----- PROTECTED REGION ID(Simulator::AmplitudeStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Simulator::AmplitudeStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : Simulator::is_smsstring_allowed()
* Description : Execution allowed for smsstring attribute
*/
//--------------------------------------------------------
bool Simulator::is_smsstring_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for smsstring attribute in read access.
/*----- PROTECTED REGION ID(Simulator::smsstringStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Simulator::smsstringStateAllowed_READ
return true;
}
//=================================================
// Commands Allowed Methods
//=================================================
//--------------------------------------------------------
/**
* Method : Simulator::is_UpdateAttributes_allowed()
* Description : Execution allowed for UpdateAttributes attribute
*/
//--------------------------------------------------------
bool Simulator::is_UpdateAttributes_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for UpdateAttributes command.
/*----- PROTECTED REGION ID(Simulator::UpdateAttributesStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // Simulator::UpdateAttributesStateAllowed
return true;
}
/*----- PROTECTED REGION ID(Simulator::SimulatorStateAllowed.AdditionalMethods) ENABLED START -----*/
// Additional Methods
/*----- PROTECTED REGION END -----*/ // Simulator::SimulatorStateAllowed.AdditionalMethods
} // End of namespace