/** @see gov.aps.jca.dbr.DBR_Byte#convert(gov.aps.jca.dbr.DBRType) */ public DBR convert(DBRType convertType) throws CAStatusException { DBR dbr = super.convert(convertType); if (dbr.isSTS()) { STS sts = (STS) dbr; sts.setSeverity(_severity); sts.setStatus(_status); } return dbr; }
/** @see gov.aps.jca.dbr.DBR_Byte#convert(gov.aps.jca.dbr.DBRType) */ public DBR convert(DBRType convertType) throws CAStatusException { DBR dbr = super.convert(convertType); if (dbr.isCTRL()) { CTRL ctrl = (CTRL) dbr; // no conversion actually needed, all is Number ctrl.setUpperCtrlLimit(getUpperCtrlLimit()); ctrl.setLowerCtrlLimit(getLowerCtrlLimit()); } return dbr; }