Skip to content
Snippets Groups Projects
SimulatedE2PSStateMachine.cpp 7.65 KiB
Newer Older
Claudio Scafuri's avatar
Claudio Scafuri committed
/*----- PROTECTED REGION ID(SimulatedE2PSStateMachine.cpp) ENABLED START -----*/
/* clang-format on */
//=============================================================================
//
// file :        SimulatedE2PSStateMachine.cpp
//
// description : State machine file for the SimulatedE2PS class
//
// project :     SimulatedE2PS
//
// 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/>.
//
//
//
//=============================================================================
//                This file is generated by POGO
//        (Program Obviously used to Generate tango Object)
//=============================================================================

#include "SimulatedE2PS.h"

/* clang-format off */
/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::SimulatedE2PSStateMachine.cpp

//================================================================
//  States  |  Description
//================================================================


namespace SimulatedE2PS_ns
{
//=================================================
//		Attributes Allowed Methods
//=================================================

//--------------------------------------------------------
/**
 *	Method      : SimulatedE2PS::is_current_allowed()
 * Description:  Execution allowed for current attribute
 */
//--------------------------------------------------------
bool SimulatedE2PS::is_current_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
	//	Not any excluded states for current attribute in Write access.
	/*----- PROTECTED REGION ID(SimulatedE2PS::currentStateAllowed_WRITE) ENABLED START -----*/
	/* clang-format on */
	/* clang-format off */
	/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::currentStateAllowed_WRITE

	//	Not any excluded states for current attribute in read access.
	/*----- PROTECTED REGION ID(SimulatedE2PS::currentStateAllowed_READ) ENABLED START -----*/
	/* clang-format on */
	/* clang-format off */
	/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::currentStateAllowed_READ
	return true;
}

//--------------------------------------------------------
/**
 *	Method      : SimulatedE2PS::is_voltage_allowed()
 * Description:  Execution allowed for voltage attribute
 */
//--------------------------------------------------------
bool SimulatedE2PS::is_voltage_allowed(TANGO_UNUSED(Tango::AttReqType type))
{

	//	Not any excluded states for voltage attribute in read access.
	/*----- PROTECTED REGION ID(SimulatedE2PS::voltageStateAllowed_READ) ENABLED START -----*/
	/* clang-format on */
	/* clang-format off */
	/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::voltageStateAllowed_READ
	return true;
}

//--------------------------------------------------------
/**
 *	Method      : SimulatedE2PS::is_currentSet_allowed()
 * Description:  Execution allowed for currentSet attribute
 */
//--------------------------------------------------------
bool SimulatedE2PS::is_currentSet_allowed(TANGO_UNUSED(Tango::AttReqType type))
{

	//	Not any excluded states for currentSet attribute in read access.
	/*----- PROTECTED REGION ID(SimulatedE2PS::currentSetStateAllowed_READ) ENABLED START -----*/
	/* clang-format on */
	/* clang-format off */
	/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::currentSetStateAllowed_READ
	return true;
}


//=================================================
//		Commands Allowed Methods
//=================================================

//--------------------------------------------------------
/**
 *	Method      : SimulatedE2PS::is_On_allowed()
 * Description:  Execution allowed for On attribute
 */
//--------------------------------------------------------
bool SimulatedE2PS::is_On_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
	//	Not any excluded states for On command.
	/*----- PROTECTED REGION ID(SimulatedE2PS::OnStateAllowed) ENABLED START -----*/
	/* clang-format on */
	/* clang-format off */
	/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::OnStateAllowed
	return true;
}

//--------------------------------------------------------
/**
 *	Method      : SimulatedE2PS::is_Off_allowed()
 * Description:  Execution allowed for Off attribute
 */
//--------------------------------------------------------
bool SimulatedE2PS::is_Off_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
	//	Not any excluded states for Off command.
	/*----- PROTECTED REGION ID(SimulatedE2PS::OffStateAllowed) ENABLED START -----*/
	/* clang-format on */
	/* clang-format off */
	/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::OffStateAllowed
	return true;
}

//--------------------------------------------------------
/**
 *	Method      : SimulatedE2PS::is_Reset_allowed()
 * Description:  Execution allowed for Reset attribute
 */
//--------------------------------------------------------
bool SimulatedE2PS::is_Reset_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
	//	Not any excluded states for Reset command.
	/*----- PROTECTED REGION ID(SimulatedE2PS::ResetStateAllowed) ENABLED START -----*/
	/* clang-format on */
	/* clang-format off */
	/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::ResetStateAllowed
	return true;
}

//--------------------------------------------------------
/**
 *	Method      : SimulatedE2PS::is_StartCycling_allowed()
 * Description:  Execution allowed for StartCycling attribute
 */
//--------------------------------------------------------
bool SimulatedE2PS::is_StartCycling_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
	//	Not any excluded states for StartCycling command.
	/*----- PROTECTED REGION ID(SimulatedE2PS::StartCyclingStateAllowed) ENABLED START -----*/
	/* clang-format on */
	/* clang-format off */
	/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::StartCyclingStateAllowed
	return true;
}

//--------------------------------------------------------
/**
 *	Method      : SimulatedE2PS::is_Abort_allowed()
 * Description:  Execution allowed for Abort attribute
 */
//--------------------------------------------------------
bool SimulatedE2PS::is_Abort_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
	//	Not any excluded states for Abort command.
	/*----- PROTECTED REGION ID(SimulatedE2PS::AbortStateAllowed) ENABLED START -----*/
	/* clang-format on */
	/* clang-format off */
	/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::AbortStateAllowed
	return true;
}

//--------------------------------------------------------
/**
 *	Method      : SimulatedE2PS::is_fault_allowed()
 * Description:  Execution allowed for fault attribute
 */
//--------------------------------------------------------
bool SimulatedE2PS::is_fault_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
	//	Not any excluded states for fault command.
	/*----- PROTECTED REGION ID(SimulatedE2PS::faultStateAllowed) ENABLED START -----*/
	/* clang-format on */
	/* clang-format off */
	/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::faultStateAllowed
	return true;
}


/*----- PROTECTED REGION ID(SimulatedE2PS::SimulatedE2PSStateAllowed.AdditionalMethods) ENABLED START -----*/
/* clang-format on */
//	Additional Methods
/* clang-format off */
/*----- PROTECTED REGION END -----*/	//	SimulatedE2PS::SimulatedE2PSStateAllowed.AdditionalMethods

}	//	End of namespace