Package javaff.data.metric

Examples of javaff.data.metric.BinaryComparator


      ActionComparators.put(pga,ss);
      Set cs = pga.getComparators();
      Iterator cit = cs.iterator();
      while (cit.hasNext())
      {
        BinaryComparator bc = (BinaryComparator) cit.next();
        ss.add(makeComparator(bc));
      }
    }
  }
View Full Code Here


  {
    super.setGoal(g);
    Iterator cit = g.getComparators().iterator();
    while (cit.hasNext())
    {
      BinaryComparator c = (BinaryComparator) cit.next();
      metricGoal.add(makeComparator(c));
    }
  }
View Full Code Here

  {
    boolean changed = false;
    Iterator bcit = conditions.keySet().iterator();
    while (bcit.hasNext())
    {
      BinaryComparator bc = (BinaryComparator) bcit.next();
      BigDecimal comp = bc.second.getValue(null);
      Action a = (Action) conditions.get(bc);
     
      if (bc.type == MetricSymbolStore.LESS_THAN || bc.type == MetricSymbolStore.LESS_THAN_EQUAL)
      {
View Full Code Here

  {
    boolean change = false;
    Iterator bcit = conditions.keySet().iterator();
    while (bcit.hasNext())
    {
      BinaryComparator bc = (BinaryComparator) bcit.next();

      BigDecimal comp = bc.second.getValue(null);
      Action a = (Action) conditions.get(bc);

      if (bc.type == MetricSymbolStore.LESS_THAN || bc.type == MetricSymbolStore.LESS_THAN_EQUAL)
View Full Code Here

     
      Iterator bcit = a.getComparators().iterator();
      while (bcit.hasNext())
      {
        //WARNING WARNING WARNING - assumes comparators are of the form (NamedFunction </>/<=/>= StaticFunction)
                           BinaryComparator bc = (BinaryComparator) bcit.next();
        NamedFunction res = (NamedFunction) bc.first;
        PrecedenceResourceGraph prg = (PrecedenceResourceGraph) graphs.get(res);
        if (prg == null)
        {
          prg = new PrecedenceResourceGraph(stn);
          graphs.put(res,prg);
        }
        state = (TemporalMetricState) states.get(a);
        BigDecimal d = bc.second.getValue(state);
        prg.addCondition(new BinaryComparator( bc.type, res, new NumberFunction(d)), a);
      }

      Iterator roit = a.getOperators().iterator();
      while (roit.hasNext())
      {
View Full Code Here

TOP

Related Classes of javaff.data.metric.BinaryComparator

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.