Adding TAST trigger alarm action

To be competed when GW provide correct string for interface
This commit is contained in:
Douglas Gillespie 2023-12-14 18:51:42 +00:00
parent 760b9769d7
commit f55311ea36
2 changed files with 28 additions and 0 deletions

View File

@ -17,6 +17,7 @@ import alarm.actions.AlarmAction;
import alarm.actions.email.SendEmailAction;
import alarm.actions.serial.AlarmSerialAction;
import alarm.actions.sound.PlaySound;
import alarm.actions.tast.TastAction;
import alarm.actions.udp.AlarmUDPAction;
import userDisplay.UserDisplayComponent;
import userDisplay.UserDisplayControl;
@ -54,6 +55,7 @@ public class AlarmControl extends PamControlledUnit implements PamSettings {
alarmActions.add(new AlarmSerialAction(this));
alarmActions.add(new SendEmailAction(this));
alarmActions.add(new AlarmUDPAction(this));
// alarmActions.add(new TastAction(this)); // uncomment when alarm action string ready
}
/* (non-Javadoc)

View File

@ -0,0 +1,26 @@
package alarm.actions.tast;
import alarm.AlarmControl;
import alarm.AlarmDataUnit;
import alarm.actions.serial.AlarmSerialAction;
public class TastAction extends AlarmSerialAction {
public TastAction(AlarmControl alarmControl) {
super(alarmControl);
}
@Override
public String getActionName() {
return "TAST Trigger";
}
@Override
protected String createAlarmString(AlarmDataUnit alarmDataUnit) {
// TODO. To define serial string to send to TAST device once we hear back
// from GenusWave.
return null;
}
}