Commit 01a6bc29 authored by TheDebbio's avatar TheDebbio
Browse files

missing impl funcs

parent 4f1d9194
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
          xmlns:baci="urn:schemas-cosylab-com:BACI:1.0"
               xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               IP="192.167.189.2" PORT="2096">
               IP="192.168.51.2" PORT="2096">
                
   
	<frequency units="MHz"/>
+123 −0
Original line number Diff line number Diff line
@@ -351,6 +351,123 @@ public:
	*/
	virtual Management::ROTSystemStatus_ptr receiverStatus() throw (CORBA::SystemException);

	/* LNA */

	/**
	 * Returns a reference to the Vd_1 property implementation of the IDL interface.
	 * @return pointer to read-only double property
	*/
    virtual ACS::ROdouble_ptr Vd_1() throw (CORBA::SystemException);

	/**
	 * Returns a reference to the Vd_2 property implementation of the IDL interface.
	 * @return pointer to read-only double property
	*/
    virtual ACS::ROdouble_ptr Vd_2() throw (CORBA::SystemException);

	/**
	 * Returns a reference to the Id_1 property implementation of the IDL interface.
	 * @return pointer to read-only double property
	*/
    virtual ACS::ROdouble_ptr Id_1() throw (CORBA::SystemException);

	/**
	 * Returns a reference to the Id_2 property implementation of the IDL interface.
	 * @return pointer to read-only double property
	*/
    virtual ACS::ROdouble_ptr Id_2() throw (CORBA::SystemException);

	/**
	 * Returns a reference to the Vg_1 property implementation of the IDL interface.
	 * @return pointer to read-only double property
	*/
    virtual ACS::ROdouble_ptr Vg_1() throw (CORBA::SystemException);

	/**
	 * Returns a reference to the Vg_2 property implementation of the IDL interface.
	 * @return pointer to read-only double property
	*/
    virtual ACS::ROdouble_ptr Vg_2() throw (CORBA::SystemException);

	/* VACUUM */
    
    /**
     * it turns the vacuum sensor on
	 * @throw CORBA::SystemException
	 * @throw ComponentErrors::ComponentErrorsEx
	 * @throw ReceiversErrors::ReceiversErrorsEx
     */
    virtual void turnVacuumSensorOn() throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx);

    /**
     * it turns the vacuum sensor on
	 * @throw CORBA::SystemException
	 * @throw ComponentErrors::ComponentErrorsEx
	 * @throw ReceiversErrors::ReceiversErrorsEx
     */
    virtual void turnVacuumSensorOff() throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx);
    
    /**
    * @brief to be done
    */
    virtual void turnVacuumPumpOn(const char *) throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx){}

	/**
    * @brief to be done
    */
    virtual void turnVacuumPumpOff() throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx){}
    
    /**
    * @brief to be done
    */
    virtual void openVacuumValve(const char *, CORBA::Double) throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx){}

	/**
    * @brief to be done
    */
    virtual void turnDewarHeatResistorsOn() throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx){}
    
	/**
    * @brief to be done
    */
    virtual void turnDewarHeatResistorsOff() throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx){}    


	/**
    * @brief to be done
    */
	 virtual void TurnColdHeadOn() throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx){}

	/**
    * @brief to be done
    */
	 virtual void TurnColdHeadOff() throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx){}
	 
	/**
    * @brief to be done
    */
	 virtual ACS::ROpattern* vacuumStatus()throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx) {return NULL;}
	 
	/**
    * @brief to be done
    */
	virtual ACS::ROdouble* environmentTemperature() {return NULL;}

	/**
    * @brief to be done
    */
	virtual ACS::ROdouble* cryoTemperatureShield() {return NULL;}

	/**
    * @brief to be done
    */
	virtual ACS::ROdouble* cryoTemperatureLNA() {return NULL;}
	
	/**
    * @brief to be done
    */
	virtual ACS::ROpattern* cryoStatus() {return NULL;}	
	
private:
	baci::SmartPropertyPointer<baci::ROdoubleSeq> m_plocalOscillator;
	baci::SmartPropertyPointer<baci::ROlong> m_pfeeds;
@@ -361,6 +478,12 @@ private:
	baci::SmartPropertyPointer<baci::ROpattern> m_pstatus;
	baci::SmartPropertyPointer<baci::ROdouble> m_pvacuum;		
	baci::SmartPropertyPointer<baci::ROstring> m_pmode;
	baci::SmartPropertyPointer<baci::ROdouble> m_pVd_1;
	baci::SmartPropertyPointer<baci::ROdouble> m_pVd_2;
	baci::SmartPropertyPointer<baci::ROdouble> m_pId_1;
	baci::SmartPropertyPointer<baci::ROdouble> m_pId_2;
	baci::SmartPropertyPointer<baci::ROdouble> m_pVg_1;
	baci::SmartPropertyPointer<baci::ROdouble> m_pVg_2;
	baci::SmartPropertyPointer < ROEnumImpl<ACS_ENUM_T(Management::TSystemStatus), POA_Management::ROTSystemStatus> > m_preceiverStatus;

	CComponentCore m_core;
+69 −1
Original line number Diff line number Diff line
@@ -23,6 +23,12 @@ MedicinaCBandImpl::MedicinaCBandImpl(const ACE_CString &CompName,maci::Container
	m_ppolarization(this),
	m_pstatus(this),
	m_pvacuum(this),	
	m_pVd_1(this),
	m_pVd_2(this),
	m_pId_1(this),
	m_pId_2(this),
	m_pVg_1(this),
	m_pVg_2(this),
	m_pmode(this),
	m_preceiverStatus(this)
{	
@@ -65,6 +71,18 @@ void MedicinaCBandImpl::execute() throw (ACSErr::ACSbaseExImpl)
		m_pIFs=new baci::ROlong(getContainerServices()->getName()+":IFs",getComponent());
		m_pfeeds=new baci::ROlong(getContainerServices()->getName()+":feeds",getComponent());
		m_pvacuum=new baci::ROdouble(getContainerServices()->getName()+":vacuum",getComponent(),new DevIOVacuum(&m_core),true);	
		m_pVd_1=new baci::ROdouble(getContainerServices()->getName()+":Vd_1",getComponent(),
				new DevIOLNAControls(&m_core,IRA::ReceiverControl::DRAIN_VOLTAGE,0),true);
		m_pVd_2=new baci::ROdouble(getContainerServices()->getName()+":Vd_2",getComponent(),
				new DevIOLNAControls(&m_core,IRA::ReceiverControl::DRAIN_VOLTAGE,1),true);
		m_pId_1=new baci::ROdouble(getContainerServices()->getName()+":Id_1",getComponent(),
				new DevIOLNAControls(&m_core,IRA::ReceiverControl::DRAIN_CURRENT,0),true);
		m_pId_2=new baci::ROdouble(getContainerServices()->getName()+":Id_2",getComponent(),
				new DevIOLNAControls(&m_core,IRA::ReceiverControl::DRAIN_CURRENT,1),true);
		m_pVg_1=new baci::ROdouble(getContainerServices()->getName()+":Vg_1",getComponent(),
				new DevIOLNAControls(&m_core,IRA::ReceiverControl::GATE_VOLTAGE,0),true);
		m_pVg_2=new baci::ROdouble(getContainerServices()->getName()+":Vg_2",getComponent(),
				new DevIOLNAControls(&m_core,IRA::ReceiverControl::GATE_VOLTAGE,1),true);			
				// new DevIOEnvTemperature(&m_core),true); // Is there a sensor?
		m_pstatus=new baci::ROpattern(getContainerServices()->getName()+":status",getComponent(),
				new DevIOStatus(&m_core),true);
@@ -480,6 +498,50 @@ void MedicinaCBandImpl::turnAntennaUnitOff() throw (CORBA::SystemException,Compo
	ACS_LOG(LM_FULL_INFO,"MedicinaCBandImpl::turnAntennaUnitOff()",(LM_NOTICE,"CBAND_ANTENNA_UNIT_OFF"));
}


void MedicinaCBandImpl::turnVacuumSensorOn() throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx)
{
	try {
		/** @todo to be done */
		//m_core.vacuumSensorOn();
	}
	catch (ComponentErrors::ComponentErrorsExImpl& ex) {
		ex.log(LM_DEBUG);
		throw ex.getComponentErrorsEx();
	}
	catch (ReceiversErrors::ReceiversErrorsExImpl& ex) {
		ex.log(LM_DEBUG);
		throw ex.getReceiversErrorsEx();
	}
	catch (...) {
		_EXCPT(ComponentErrors::UnexpectedExImpl,impl,"MedicinaCBandImpl::turnVacuumSensorOn()");
		impl.log(LM_DEBUG);
		throw impl.getComponentErrorsEx();
	}
}

void MedicinaCBandImpl::turnVacuumSensorOff() throw  (CORBA::SystemException,ComponentErrors::ComponentErrorsEx,ReceiversErrors::ReceiversErrorsEx)
{
	try {
		/** @todo to be done */
		//m_core.vacuumSensorOff();
	}
	catch (ComponentErrors::ComponentErrorsExImpl& ex) {
		ex.log(LM_DEBUG);
		throw ex.getComponentErrorsEx();
	}
	catch (ReceiversErrors::ReceiversErrorsExImpl& ex) {
		ex.log(LM_DEBUG);
		throw ex.getReceiversErrorsEx();
	}
	catch (...) {
		_EXCPT(ComponentErrors::UnexpectedExImpl,impl,"MedicinaCBandImpl::turnVacuumSensorOff()");
		impl.log(LM_DEBUG);
		throw impl.getComponentErrorsEx();
	}
}


_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROdoubleSeq,m_plocalOscillator,LO);
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROpattern,m_pstatus,status);
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROlongSeq,m_ppolarization,polarization);
@@ -489,6 +551,12 @@ _PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROdoubleSeq,m_pbandWidth,bandWidt
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROdoubleSeq,m_pinitialFrequency,initialFrequency);
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROdouble,m_pvacuum,vacuum);
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROstring,m_pmode,mode);
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROdouble,m_pVd_1,Vd_1);
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROdouble,m_pVd_2,Vd_2);
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROdouble,m_pId_1,Id_1);
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROdouble,m_pId_2,Id_2);
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROdouble,m_pVg_1,Vg_1);
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,ACS::ROdouble,m_pVg_2,Vg_2);
_PROPERTY_REFERENCE_CPP(MedicinaCBandImpl,Management::ROTSystemStatus,m_preceiverStatus,receiverStatus);