1 28 29 package ist.coach.coachEmfClientComponents.ManagedObjectClientComposition; 30 31 32 import java.text.DateFormat ; 33 import ist.coach.coachEmfCommon.Utils; 34 40 public class operationalViolationSegImpl 41 extends ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.operationalViolationSeg 42 { 43 49 55 public operationalViolationSegImpl() 56 { 57 } 58 59 65 68 public void 69 push(ist.coach.itut_q816Components.OperationalViolation event) 70 { 71 System.err.println("---->OperationalViolation received: "); 72 System.err.println("Source Object Name = " + Utils.name2string(event.source)); 73 System.err.println("Source Object Type = " + event.sourceClass); 74 System.err.println("Notification Id = " + event.notificationIdentifier); 75 76 java.util.Date event_date = new java.util.Date (event.eventTime.time); 77 DateFormat df = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT); 78 String time_str = df.format(event_date); 79 80 ManagedObjectClientImpl main_segment = (ManagedObjectClientImpl) get_main_segment(); 81 main_segment.ui_client.print_alarm(time_str, 82 ist.coach.coachEmfClientComponents.gui.GuiMessages.operation_violation_alarm, 83 Utils.name2string(event.source), event.sourceClass, 84 String.valueOf(event.notificationIdentifier), ""); 85 } 86 87 } 88 | Popular Tags |