Skip to content
Snippets Groups Projects
Select Git revision
  • 8e6116a71d6c988d83500df41b5073a515e78a09
  • master default protected
  • configuration_dev
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
10 results

alarm_table.cpp

Blame
  • Forked from cs / ds / alarm-handler
    Source project has a limited visibility.
    SupervisedIDStateMachine.cpp 3.89 KiB
    /*----- 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