Search in sources :

Example 1 with EventTypeDto

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);
    }
}
Also used : EventNotificationDto(com.alliander.osgp.dto.valueobjects.EventNotificationDto) BdaVisibleString(org.openmuc.openiec61850.BdaVisibleString) DateTime(org.joda.time.DateTime) EventTypeDto(com.alliander.osgp.dto.valueobjects.EventTypeDto)

Aggregations

EventNotificationDto (com.alliander.osgp.dto.valueobjects.EventNotificationDto)1 EventTypeDto (com.alliander.osgp.dto.valueobjects.EventTypeDto)1 DateTime (org.joda.time.DateTime)1 BdaVisibleString (org.openmuc.openiec61850.BdaVisibleString)1