private void sendWarning() { /* POPUPWARNING = 0; public final static int POPUPHALT = 1; public final static int PASSIVEWARNING = 2; public final static int LOGONLY */ if (alarmType == PASSIVEWARNING) { NLDEvent nld = NLDEventFactory.getNLD("tspFeed"); nld.addRoute(NLDConstants.WARNING | NLDConstants.REALTIMESTATUS | NLDConstants.ASPECT); nld.addKey("SPC Control Event"); nld.addMessage("SPC Softwarning"); nld.addElement( createElement("Intervention Description", "Operator Warning, Production Paused")); nld.addDetail(new SPCEventDetail(this)); nld.write(); softWarning(); nld = NLDEventFactory.getNLD("tspFeed"); nld.addRoute(NLDConstants.WARNING | NLDConstants.REALTIMESTATUS | NLDConstants.ASPECT); nld.addKey("SPC Control Event"); nld.addMessage("SPC Warning Acknowledged - Resuming Production"); nld.write(); } else if (alarmType == POPUPHALT) { NLDEvent nld = NLDEventFactory.getNLD("tspFeed"); nld.addRoute(NLDConstants.WARNING | NLDConstants.REALTIMESTATUS | NLDConstants.ASPECT); nld.addKey("SPC Control Event"); nld.addMessage("SPC Limit Failed Halting Production"); nld.addElement( createElement( "Intervention Description", "Request for Line EA Assistence, Production Paused")); nld.addDetail(new SPCEventDetail(this)); nld.write(); hardWarning(); nld = NLDEventFactory.getNLD("tspFeed"); nld.addRoute(NLDConstants.WARNING | NLDConstants.REALTIMESTATUS | NLDConstants.ASPECT); nld.addKey("SPC Control Event"); nld.addMessage("SPC Warning Acknowledged - Resuming Production"); nld.write(); } else if (alarmType == LOGONLY) { NLDEvent nld = NLDEventFactory.getNLD("tspFeed"); nld.addRoute(NLDConstants.WARNING | NLDConstants.REALTIMESTATUS | NLDConstants.ASPECT); nld.addKey("SPC Control Event"); nld.addMessage("SPC Limit Failed"); nld.addElement( createElement( "Intervention Description", "Data logging only, production not interuppted.")); nld.addDetail(new SPCEventDetail(this)); nld.write(); } }