public void update(ArrayList<SDevice> arsd) { for (SDevice sp : arsd) { if (sp.getID().compareToIgnoreCase(m_ID) == 0) { if (sp instanceof StokerProbe) update((StokerProbe) sp); else update(sp); } } }
public void update(StokerProbe sp) { super.update((SDevice) sp); targetTemp = sp.getTargetTemp(); lowerTempAlarm = sp.getLowerTempAlarm(); upperTempAlarm = sp.getUpperTempAlarm(); alarm = sp.getAlarmEnabled(); }