use of com.alliander.osgp.dto.valueobjects.EventTypeDto in project Protocol-Adapter-IEC61850 by OSGP.
the class Iec61850ClientSSLDEventListener method addEventNotificationForReportedData.
private void addEventNotificationForReportedData(final FcModelNode evnRpn, final DateTime timeOfEntry, final String reportDescription) throws ProtocolAdapterException {
final EventTypeDto eventType = this.determineEventType(evnRpn, reportDescription);
final Integer index = this.determineRelayIndex(evnRpn, reportDescription);
final String description = this.determineDescription(evnRpn);
final DateTime dateTime = this.determineDateTime(evnRpn, timeOfEntry);
final EventNotificationDto eventNotification = new EventNotificationDto(this.deviceIdentification, dateTime, eventType, description, index);
synchronized (this.eventNotifications) {
this.eventNotifications.add(eventNotification);
}
}
Aggregations