use of alma.ACS.jbaci.MemoryDataAccess in project ACS by ACS-Community.
the class EnumTestComponentImpl method initialize.
/**
* @see alma.acs.component.ComponentLifecycle#initialize(alma.acs.container.ContainerServices)
*/
public void initialize(ContainerServices containerServices) throws ComponentLifecycleException {
super.initialize(containerServices);
try {
dataAccess = new MemoryDataAccess();
// currentState
ROStatesOperations currentStateImpl = (ROStatesOperations) CommonROEnumPropertyImpl.createEnumProperty(ROStatesOperations.class, States.class, "currentState", this, dataAccess);
ROStatesPOATie currentStatesTie = new ROStatesPOATie(currentStateImpl);
currentState = ROStatesHelper.narrow(this.registerProperty(currentStateImpl, currentStatesTie));
// currentStateRW
RWStatesOperations currentStateRWImpl = (RWStatesOperations) CommonRWEnumPropertyImpl.createEnumProperty(RWStatesOperations.class, States.class, "currentStateRW", this, dataAccess);
RWStatesPOATie currentStatesRWTie = new RWStatesPOATie(currentStateRWImpl);
currentStateRW = RWStatesHelper.narrow(this.registerProperty(currentStateRWImpl, currentStatesRWTie));
} catch (Throwable th) {
throw new ComponentLifecycleException("Failed to create properties.", th);
}
}
use of alma.ACS.jbaci.MemoryDataAccess 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);
}
}
use of alma.ACS.jbaci.MemoryDataAccess 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);
}
}
use of alma.ACS.jbaci.MemoryDataAccess in project ACS by ACS-Community.
the class SeqComponentImpl 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();
ROlongSeqImpl readbackLongSeqImpl = new ROlongSeqImpl("longSeqRO", this, new readbackLongSeqDataAccess());
ROlongSeqPOATie readbackLongSeqTie = new ROlongSeqPOATie(readbackLongSeqImpl);
longSeqRO = ROlongSeqHelper.narrow(this.registerProperty(readbackLongSeqImpl, readbackLongSeqTie));
RWlongSeqImpl readbackLongSeqRWImpl = new RWlongSeqImpl("longSeqRW", this, currentDataAccess2);
RWlongSeqPOATie readbackLongSeqRWTie = new RWlongSeqPOATie(readbackLongSeqRWImpl);
longSeqRW = RWlongSeqHelper.narrow(this.registerProperty(readbackLongSeqRWImpl, readbackLongSeqRWTie));
ROdoubleSeqImpl readbackDoubleSeqImpl = new ROdoubleSeqImpl("doubleSeqRO", this, new readbackDoubleSeqDataAccess());
ROdoubleSeqPOATie readbackDoubleSeqTie = new ROdoubleSeqPOATie(readbackDoubleSeqImpl);
doubleSeqRO = ROdoubleSeqHelper.narrow(this.registerProperty(readbackDoubleSeqImpl, readbackDoubleSeqTie));
RWdoubleSeqImpl readbackDoubleSeqRWImpl = new RWdoubleSeqImpl("doubleSeqRW", this, currentDataAccess);
RWdoubleSeqPOATie readbackDoubleSeqRWTie = new RWdoubleSeqPOATie(readbackDoubleSeqRWImpl);
doubleSeqRW = RWdoubleSeqHelper.narrow(this.registerProperty(readbackDoubleSeqRWImpl, readbackDoubleSeqRWTie));
ROfloatSeqImpl readbackFloatSeqImpl = new ROfloatSeqImpl("floatSeqRO", this, new readbackFloatSeqDataAccess());
ROfloatSeqPOATie readbackFloatSeqTie = new ROfloatSeqPOATie(readbackFloatSeqImpl);
floatSeqRO = ROfloatSeqHelper.narrow(this.registerProperty(readbackFloatSeqImpl, readbackFloatSeqTie));
RWfloatSeqImpl readbackFloatSeqRWImpl = new RWfloatSeqImpl("floatSeqRW", this, currentDataAccess3);
RWfloatSeqPOATie readbackFloatSeqRWTie = new RWfloatSeqPOATie(readbackFloatSeqRWImpl);
floatSeqRW = RWfloatSeqHelper.narrow(this.registerProperty(readbackFloatSeqRWImpl, readbackFloatSeqRWTie));
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);
}
}
Aggregations