43 lines
1.1 KiB
Dart
43 lines
1.1 KiB
Dart
// ignore_for_file: constant_identifier_names
|
|
|
|
import 'parser.dart';
|
|
import 'sentence.dart';
|
|
|
|
const TypeALA = "ALA";
|
|
|
|
class ALA {
|
|
Time time;
|
|
String systemIndicator;
|
|
String subSystemIndicator;
|
|
int instanceNumber;
|
|
int type;
|
|
String condition;
|
|
String alarmAckState;
|
|
String message;
|
|
|
|
ALA({
|
|
required this.time,
|
|
required this.systemIndicator,
|
|
required this.subSystemIndicator,
|
|
required this.instanceNumber,
|
|
required this.type,
|
|
required this.condition,
|
|
required this.alarmAckState,
|
|
required this.message,
|
|
});
|
|
static ALA newALA(BaseSentence s) {
|
|
var p = Parser(s);
|
|
return ALA(
|
|
time: p.time(0, "time"),
|
|
systemIndicator: p.string(1, "system indicator"),
|
|
subSystemIndicator: p.string(2, "subsystem indicator"),
|
|
instanceNumber: p.int64(3, "instance number"),
|
|
type: p.int64(4, "type"),
|
|
condition: p.string(5, "condition"), // string as there could be more
|
|
alarmAckState: p.string(
|
|
6, "alarm acknowledgement state"), // string as there could be more
|
|
message: p.string(7, "message"),
|
|
);
|
|
}
|
|
}
|