Package javaff.data

Examples of javaff.data.TimeStampedPlan


    return consistent();
  }

    public TimeStampedPlan getTimes()
    {
    TimeStampedPlan plan = new TimeStampedPlan();
        Iterator ait = Timepoints.iterator();
        while (ait.hasNext())
        {
            InstantAction a = (InstantAction) ait.next();;
            if (a instanceof StartInstantAction)
            {
                DurativeAction da = ((StartInstantAction)a).parent;
                BigDecimal time = TheArray[Timepoints.indexOf(a)][0].negate().setScale(SCALE,ROUND);
        BigDecimal dur = TheArray[Timepoints.indexOf(da.endAction)][0].negate().subtract(time).setScale(SCALE,ROUND);
                plan.addAction(da, time, dur);
            }
      else if (a instanceof STRIPSInstantAction && a != START)
      {
        BigDecimal time = TheArray[Timepoints.indexOf(a)][0].negate().setScale(SCALE,ROUND);
        plan.addAction(a, time);
      }
        }
        return plan;
    }
View Full Code Here


    stn.minimizeTime();
    stn.minimizeDuration();
    stn.constrain();
   
    TimeStampedPlan p = stn.getTimes();

    return p;
  }
View Full Code Here

TOP

Related Classes of javaff.data.TimeStampedPlan

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.