Package javaff.data.temporal

Examples of javaff.data.temporal.StartInstantAction


      while (eit2.hasNext() && allGood)
      {
        EnvelopeEntry e = (EnvelopeEntry) eit2.next();
        if (checkOrder(a,e.end))
        {
          StartInstantAction sa = ((StartInstantAction) a);
          EnvelopeEntry ne = new EnvelopeEntry(e.start, sa.getSibling());
          ne.maxEnv = sa.parent.getMaxDuration(s).add(e.maxEnv);
          ne.minEnv = sa.parent.getMinDuration(s).add(e.minEnv);
          ne.constraints.addAll(TemporalConstraint.getBounds(sa, sa.getSibling(), sa.parent.getMaxDuration(s), sa.parent.getMinDuration(s)));
          ne.constraints.addAll(e.constraints);
          ne.followsStart.addAll(e.followsStart);

          Iterator fit = e.followsStart.iterator();
          while (fit.hasNext())
View Full Code Here


    {
      followsStart.add(s);
      constraints.add(TemporalConstraint.getConstraint(f, s));
      if (s instanceof StartInstantAction)
      {
        StartInstantAction sa = (StartInstantAction) s;
        //followsStart.add(sa.getSibling());
        constraints.addAll(TemporalConstraint.getBounds(sa, sa.getSibling(), sa.parent.getMaxDuration(tms), sa.parent.getMinDuration(tms)));
      }
    }
View Full Code Here

      while (lit.hasNext())
      {
        Action a = (Action) lit.next();
        if (a instanceof StartInstantAction)
        {
          StartInstantAction sa = (StartInstantAction) a;
          if (!acts.contains(sa.getSibling())) ((TotalOrderPlan)p).addAction(sa.getSibling());
        }
      }
    }
   
    return p;
View Full Code Here

    while (ait.hasNext())
    {
      Action a = (Action) ait.next();
      if (a instanceof StartInstantAction)
      {
        StartInstantAction sia = (StartInstantAction) a;
        List l = TemporalConstraint.getBounds(sia, sia.getSibling(), sia.parent.getMaxDuration(state), sia.parent.getMinDuration(state));
        stn.addConstraints(new HashSet(l));
      }
      states.put(a, state);
      state = (TemporalMetricState) state.apply(a);
    }
View Full Code Here

TOP

Related Classes of javaff.data.temporal.StartInstantAction

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.