1 28 29 package ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition; 30 import ist.coach.coachEmfCommon.Utils; 31 import ist.coach.coachEmfServices.EmfBasicLog.*; 32 33 39 public class operationalViolationSegImpl 40 extends ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.operationalViolationSeg 41 { 42 48 54 public operationalViolationSegImpl() 55 { 56 } 57 58 64 67 public void 68 push(ist.coach.itut_q816Components.OperationalViolation event) 69 { 70 String [] excludedEventTypes = get_main_segment().excludedeventTypes(); 74 for (int i = 0; i < excludedEventTypes.length; i++) { 75 if (excludedEventTypes[i].equals("OperationalViolation")) 76 return; 77 } 78 String [] excludedEventSources = get_main_segment().excludedSourceClasses(); 79 for (int i = 0; i < excludedEventSources.length; i++) { 80 if (excludedEventSources[i].equals(event.sourceClass)) 81 return; 82 } 83 String [] eventTypes = get_main_segment().eventTypes(); 84 boolean eventSupported = false; 85 for (int i = 0; i < eventTypes.length; i++) { 86 if (eventTypes[i].equals("OperationalViolation")) { 87 eventSupported = true; 88 break; 89 } 90 } 91 if (! eventSupported) return; 92 93 String [] eventSources = get_main_segment().sourceClasses(); 94 boolean eventSourceSupported = false; 95 for (int i = 0; i < eventSources.length; i++) { 96 if (eventSources[i].equals(event.sourceClass)) { 97 eventSourceSupported = true; 98 break; 99 } 100 } 101 if (!eventSourceSupported) return; 102 get_context().push_operational_alarm(event); 103 104 BasicLog logSupport = get_context().get_connection_basic_log(); 105 Utils.pretty_log(logSupport, Utils.name2string(event.source), 106 event.sourceClass, 107 (short) LogSeverity._Info, 108 "OperationalViolation " + event.notificationIdentifier); 109 } 110 111 } 112 | Popular Tags |