Package sos.scheduler.consoleviews.events

Examples of sos.scheduler.consoleviews.events.SOSEventGroups


   
    for (int i = 0; i < eventGroups.getLength(); i++) {
     Node eventGroup = eventGroups.item(i);
     if (eventGroup.getNodeName().equals("event_group")){
       NamedNodeMap attr = eventGroup.getAttributes();
       SOSEventGroups evg = new SOSEventGroups(getText(attr.getNamedItem("group")));
         evg.logic = getText(attr.getNamedItem("logic"));
         evg.group = getText(attr.getNamedItem("group"));
         evg.event_class = getText(attr.getNamedItem("event_class"));
         fillEvents(eventGroup,evg);
       a.listOfEventGroups.add(evg);
View Full Code Here


        
        if (a != null) {
                     
         Iterator i = a.getListOfEventGroups().iterator();
         while (i.hasNext()) {
          SOSEventGroups evg = (SOSEventGroups)i.next();
          Iterator iEvents = evg.getListOfEvents().iterator();
          while (iEvents.hasNext()) {
            SchedulerEvent event = (SchedulerEvent)iEvents.next();
            System.out.println(event.getJob_name() + " " + eval. getEventStatus(event));
             }
          }
View Full Code Here

    String tmp = logic;
    if (logic.length() == 0 || logic.equalsIgnoreCase("or")) {
     logic = "";
     Iterator i = listOfEventGroups.iterator();
     while (i.hasNext()) {
      SOSEventGroups evg = (SOSEventGroups) i.next();
      logic += evg.group + " or ";
     }
     logic += " false";
    }

    if (logic.equalsIgnoreCase("and")) {
     logic = "";
     Iterator i = listOfEventGroups.iterator();
     while (i.hasNext()) {
      SOSEventGroups evg = (SOSEventGroups) i.next();
      logic += evg.group + " and ";
     }
     logic += " true";
    }
    BooleanExp exp = new BooleanExp(logic);
    Iterator i = listOfEventGroups.iterator();
    while (i.hasNext()) {
    SOSEventGroups evg = ( SOSEventGroups) i.next();
    exp.replace(evg.group, exp.trueFalse(evg.isActiv(listOfActiveEvents)));
    }
   logic = tmp;
     return exp.evaluateExpression();
    
   }
View Full Code Here

TOP

Related Classes of sos.scheduler.consoleviews.events.SOSEventGroups

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.