diff --git a/src/alarm/AlarmControl.java b/src/alarm/AlarmControl.java index 9e211671..83f2dd8c 100644 --- a/src/alarm/AlarmControl.java +++ b/src/alarm/AlarmControl.java @@ -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) diff --git a/src/alarm/actions/tast/TastAction.java b/src/alarm/actions/tast/TastAction.java new file mode 100644 index 00000000..76276d75 --- /dev/null +++ b/src/alarm/actions/tast/TastAction.java @@ -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; + } + +}