Search in sources :

Example 1 with ROdoublePOATie

use of alma.ACS.ROdoublePOATie in project ACS by ACS-Community.

the class Mount6Impl method initialize.

public void initialize(ContainerServices containerServices) throws ComponentLifecycleException {
    super.initialize(containerServices);
    try {
        ROdoubleImpl actAzImpl = new ROdoubleImpl("actAz", this);
        //			m_actAzDataAccess = actAzImpl.getDataAccess();
        ROdoublePOATie actAzTie = new ROdoublePOATie(actAzImpl);
        m_actAz = ROdoubleHelper.narrow(this.registerProperty(actAzImpl, actAzTie));
        ROdoubleImpl actElImpl = new ROdoubleImpl("actEl", this);
        ROdoublePOATie actElTie = new ROdoublePOATie(actElImpl);
        m_actEl = ROdoubleHelper.narrow(this.registerProperty(actElImpl, actElTie));
        ROdoubleImpl cmdAzImpl = new ROdoubleImpl("cmdAz", this);
        ROdoublePOATie cmdAzTie = new ROdoublePOATie(cmdAzImpl);
        m_cmdAz = ROdoubleHelper.narrow(this.registerProperty(cmdAzImpl, cmdAzTie));
        ROdoubleImpl cmdElImpl = new ROdoubleImpl("cmdEl", this);
        ROdoublePOATie cmdElTie = new ROdoublePOATie(cmdElImpl);
        m_cmdEl = ROdoubleHelper.narrow(this.registerProperty(cmdElImpl, cmdElTie));
    } catch (Throwable th) {
        throw new ComponentLifecycleException("Failed to create properties.", th);
    }
}
Also used : ROdoublePOATie(alma.ACS.ROdoublePOATie) ComponentLifecycleException(alma.acs.component.ComponentLifecycleException) ROdoubleImpl(alma.ACS.impl.ROdoubleImpl)

Example 2 with ROdoublePOATie

use of alma.ACS.ROdoublePOATie in project ACS by ACS-Community.

the class PrimComponentImpl method initialize.

/**
	 * @see alma.acs.component.ComponentLifecycle#initialize(alma.acs.container.ContainerServices)
	 */
public void initialize(ContainerServices containerServices) throws ComponentLifecycleException {
    super.initialize(containerServices);
    try {
        DataAccess currentDataAccess = new MemoryDataAccess();
        DataAccess currentDataAccess2 = new MemoryDataAccess();
        DataAccess currentDataAccess3 = new MemoryDataAccess();
        DataAccess currentDataAccess4 = new MemoryDataAccess();
        DataAccess currentDataAccess5 = new MemoryDataAccess();
        DataAccess currentDataAccess6 = new MemoryDataAccess();
        /* Long properties */
        RWlongImpl readbackLongRWImpl = new RWlongImpl("longRW", this, currentDataAccess);
        RWlongPOATie readbackLongRWTie = new RWlongPOATie(readbackLongRWImpl);
        longRW = RWlongHelper.narrow(this.registerProperty(readbackLongRWImpl, readbackLongRWTie));
        ROlongImpl readbackLongROImpl = new ROlongImpl("longRO", this, currentDataAccess2);
        ROlongPOATie readbackLongROTie = new ROlongPOATie(readbackLongROImpl);
        longRO = ROlongHelper.narrow(this.registerProperty(readbackLongROImpl, readbackLongROTie));
        /* Double properties */
        RWdoubleImpl readbackDoubleRWImpl = new RWdoubleImpl("doubleRW", this, currentDataAccess3);
        RWdoublePOATie readbackDoubleRWTie = new RWdoublePOATie(readbackDoubleRWImpl);
        doubleRW = RWdoubleHelper.narrow(this.registerProperty(readbackDoubleRWImpl, readbackDoubleRWTie));
        ROdoubleImpl readbackDoubleROImpl = new ROdoubleImpl("doubleRO", this, currentDataAccess4);
        ROdoublePOATie readbackDoubleROTie = new ROdoublePOATie(readbackDoubleROImpl);
        doubleRO = ROdoubleHelper.narrow(this.registerProperty(readbackDoubleROImpl, readbackDoubleROTie));
        /* Float properties */
        RWfloatImpl readbackFloatRWImpl = new RWfloatImpl("floatRW", this, currentDataAccess5);
        RWfloatPOATie readbackFloatRWTie = new RWfloatPOATie(readbackFloatRWImpl);
        floatRW = RWfloatHelper.narrow(this.registerProperty(readbackFloatRWImpl, readbackFloatRWTie));
        ROfloatImpl readbackFloatROImpl = new ROfloatImpl("floatRO", this, currentDataAccess6);
        ROfloatPOATie readbackFloatROTie = new ROfloatPOATie(readbackFloatROImpl);
        floatRO = ROfloatHelper.narrow(this.registerProperty(readbackFloatROImpl, readbackFloatROTie));
        /* Pattern property */
        ROpatternImpl statusImpl = new ROpatternImpl("status", this, new StatusDataAccess());
        ROpatternPOATie statusTie = new ROpatternPOATie(statusImpl);
        status = ROpatternHelper.narrow(this.registerProperty(statusImpl, statusTie));
        /* Boolean properties */
        DataAccess rwBooleanDataAccess = new MemoryDataAccess();
        RWbooleanImpl booleanRWImpl = new RWbooleanImpl("booleanRW", this, rwBooleanDataAccess);
        RWbooleanPOATie booleanRWTie = new RWbooleanPOATie(booleanRWImpl);
        booleanRW = RWbooleanHelper.narrow(this.registerProperty(booleanRWImpl, booleanRWTie));
        DataAccess roBooleanDataAccess = new MemoryDataAccess();
        RObooleanImpl booleanROImpl = new RObooleanImpl("booleanRO", this, roBooleanDataAccess);
        RObooleanPOATie booleanROTie = new RObooleanPOATie(booleanROImpl);
        booleanRO = RObooleanHelper.narrow(this.registerProperty(booleanROImpl, booleanROTie));
    } catch (Throwable th) {
        throw new ComponentLifecycleException("Failed to create properties.", th);
    }
}
Also used : ROlongImpl(alma.ACS.impl.ROlongImpl) ROdoublePOATie(alma.ACS.ROdoublePOATie) RWbooleanPOATie(alma.ACS.RWbooleanPOATie) ROlongPOATie(alma.ACS.ROlongPOATie) RWlongPOATie(alma.ACS.RWlongPOATie) ComponentLifecycleException(alma.acs.component.ComponentLifecycleException) MemoryDataAccess(alma.ACS.jbaci.MemoryDataAccess) RObooleanImpl(alma.ACS.impl.RObooleanImpl) ROdoubleImpl(alma.ACS.impl.ROdoubleImpl) RWfloatImpl(alma.ACS.impl.RWfloatImpl) MemoryDataAccess(alma.ACS.jbaci.MemoryDataAccess) DataAccess(alma.ACS.jbaci.DataAccess) RWbooleanImpl(alma.ACS.impl.RWbooleanImpl) RObooleanPOATie(alma.ACS.RObooleanPOATie) ROfloatImpl(alma.ACS.impl.ROfloatImpl) ROpatternPOATie(alma.ACS.ROpatternPOATie) RWdoubleImpl(alma.ACS.impl.RWdoubleImpl) ROpatternImpl(alma.ACS.impl.ROpatternImpl) RWdoublePOATie(alma.ACS.RWdoublePOATie) RWfloatPOATie(alma.ACS.RWfloatPOATie) RWlongImpl(alma.ACS.impl.RWlongImpl) ROfloatPOATie(alma.ACS.ROfloatPOATie)

Example 3 with ROdoublePOATie

use of alma.ACS.ROdoublePOATie in project ACS by ACS-Community.

the class PowerSupplyImpl method initialize.

/**
	 * @see alma.acs.component.ComponentLifecycle#initialize(alma.acs.container.ContainerServices)
	 */
public void initialize(ContainerServices containerServices) throws ComponentLifecycleException {
    super.initialize(containerServices);
    try {
        // readback/current
        DataAccess currentDataAccess = new MemoryDataAccess();
        DataAccess readbackDataAccess = new ReadbackDataAccess(currentDataAccess, 10.0);
        // current
        RWdoubleImpl currentImpl = new RWdoubleImpl("current", this, currentDataAccess);
        RWdoublePOATie currentTie = new RWdoublePOATie(currentImpl);
        current = RWdoubleHelper.narrow(this.registerProperty(currentImpl, currentTie));
        // readback
        ROdoubleImpl readbackImpl = new ROdoubleImpl("readback", this, readbackDataAccess);
        ROdoublePOATie readbackTie = new ROdoublePOATie(readbackImpl);
        readback = ROdoubleHelper.narrow(this.registerProperty(readbackImpl, readbackTie));
        // status
        ROpatternImpl statusImpl = new ROpatternImpl("status", this, new StatusDataAccess());
        ROpatternPOATie statusTie = new ROpatternPOATie(statusImpl);
        status = ROpatternHelper.narrow(this.registerProperty(statusImpl, statusTie));
    } catch (Throwable th) {
        throw new ComponentLifecycleException("Failed to create properties.", th);
    }
}
Also used : ROpatternPOATie(alma.ACS.ROpatternPOATie) RWdoubleImpl(alma.ACS.impl.RWdoubleImpl) ROdoublePOATie(alma.ACS.ROdoublePOATie) ROpatternImpl(alma.ACS.impl.ROpatternImpl) RWdoublePOATie(alma.ACS.RWdoublePOATie) ComponentLifecycleException(alma.acs.component.ComponentLifecycleException) MemoryDataAccess(alma.ACS.jbaci.MemoryDataAccess) ROdoubleImpl(alma.ACS.impl.ROdoubleImpl) MemoryDataAccess(alma.ACS.jbaci.MemoryDataAccess) DataAccess(alma.ACS.jbaci.DataAccess)

Aggregations

ROdoublePOATie (alma.ACS.ROdoublePOATie)3 ROdoubleImpl (alma.ACS.impl.ROdoubleImpl)3 ComponentLifecycleException (alma.acs.component.ComponentLifecycleException)3 ROpatternPOATie (alma.ACS.ROpatternPOATie)2 RWdoublePOATie (alma.ACS.RWdoublePOATie)2 ROpatternImpl (alma.ACS.impl.ROpatternImpl)2 RWdoubleImpl (alma.ACS.impl.RWdoubleImpl)2 DataAccess (alma.ACS.jbaci.DataAccess)2 MemoryDataAccess (alma.ACS.jbaci.MemoryDataAccess)2 RObooleanPOATie (alma.ACS.RObooleanPOATie)1 ROfloatPOATie (alma.ACS.ROfloatPOATie)1 ROlongPOATie (alma.ACS.ROlongPOATie)1 RWbooleanPOATie (alma.ACS.RWbooleanPOATie)1 RWfloatPOATie (alma.ACS.RWfloatPOATie)1 RWlongPOATie (alma.ACS.RWlongPOATie)1 RObooleanImpl (alma.ACS.impl.RObooleanImpl)1 ROfloatImpl (alma.ACS.impl.ROfloatImpl)1 ROlongImpl (alma.ACS.impl.ROlongImpl)1 RWbooleanImpl (alma.ACS.impl.RWbooleanImpl)1 RWfloatImpl (alma.ACS.impl.RWfloatImpl)1