/*----- PROTECTED REGION ID(SupervisedIDStateMachine.cpp) ENABLED START -----*/ //============================================================================= // // 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 // MOVING | Device gap is moving 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 //================================================= /*----- PROTECTED REGION ID(SupervisedID::SupervisedIDStateAllowed.AdditionalMethods) ENABLED START -----*/ // Additional Methods /*----- PROTECTED REGION END -----*/ // SupervisedID::SupervisedIDStateAllowed.AdditionalMethods } // End of namespace