mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-25 08:32:32 +00:00
Adding TAST trigger alarm action
To be competed when GW provide correct string for interface
This commit is contained in:
parent
760b9769d7
commit
f55311ea36
@ -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)
|
||||
|
26
src/alarm/actions/tast/TastAction.java
Normal file
26
src/alarm/actions/tast/TastAction.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user