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