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
/*----- PROTECTED REGION ID(SupervisedIDStateMachine.cpp) ENABLED START -----*/
static const char *RcsId = "$Id: SupervisedIDStateMachine.cpp,v 1.2 2014-04-14 14:52:01 claudio Exp $";
//=============================================================================
//
// file : SupervisedIDStateMachine.cpp
//
// description : C++ source for the SupervisedID and its alowed
// methods for commands and attributes
//
// project : Supervised ID: common interface for supervised insertion devices.
//
// $Author: claudio $
//
// $Revision: 1.2 $
// $Date: 2014-04-14 14:52:01 $
//
// SVN only:
// $HeadURL: $
//
// CVS only:
// $Source: /home/cvsadm/cvsroot/AbstractClasses7/SupervisedID/SupervisedIDStateMachine.cpp,v $
// $Log: SupervisedIDStateMachine.cpp,v $
// Revision 1.2 2014-04-14 14:52:01 claudio
// for 8.1.2.c and pogo-8
//
// Revision 1.1.1.1 2012-03-05 14:01:56 claudio
// frist import
//
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#include <SupervisedID.h>
#include <SupervisedIDClass.h>
/*----- PROTECTED REGION END -----*/ // SupervisedID::SupervisedIDStateMachine.cpp
//================================================================
// States | Description
//================================================================
// ON | Device OK
// FAULT | Device not working - broken ID
// UNKNOWN | Device not working - unknow reason/condition
// RUNNING | Device gap is moving
// DISABLE | Device not remotely operable
namespace SupervisedID_ns
{
//=================================================
// Attributes Allowed Methods
//=================================================
//--------------------------------------------------------
/**
* Method : SupervisedID::is_Enabled_allowed()
* Description : Execution allowed for Enabled attribute
*/
//--------------------------------------------------------
bool SupervisedID::is_Enabled_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for Enabled attribute in Write access.
/*----- PROTECTED REGION ID(SupervisedID::EnabledStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // SupervisedID::EnabledStateAllowed_WRITE
// Not any excluded states for Enabled attribute in read access.
/*----- PROTECTED REGION ID(SupervisedID::EnabledStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // SupervisedID::EnabledStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : SupervisedID::is_Ready_allowed()
* Description : Execution allowed for Ready attribute
*/
//--------------------------------------------------------
bool SupervisedID::is_Ready_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for Ready attribute in read access.
/*----- PROTECTED REGION ID(SupervisedID::ReadyStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // SupervisedID::ReadyStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : SupervisedID::is_StatRF_allowed()
* Description : Execution allowed for StatRF attribute
*/
//--------------------------------------------------------
bool SupervisedID::is_StatRF_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for StatRF attribute in read access.
/*----- PROTECTED REGION ID(SupervisedID::StatRFStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // SupervisedID::StatRFStateAllowed_READ
return true;
}
//=================================================
// Commands Allowed Methods
//=================================================
} // End of namespace