dao = actuatorScalarDAO;
}
else if (abstractKey instanceof SensorKey) {
SensorKey sKey = (SensorKey) abstractKey;
dao = new SensorScalarDAO(((SensorKey) abstractKey).getSensor());
if (sKey.getDataMode() == DataMode.READ) {
((SensorScalarDAO) dao).setDataMode(ASensorDAO.DataMode.READ);
}