Package javaff.data.strips

Examples of javaff.data.strips.Proposition


    }

    Iterator iit = initial.iterator();
    while (iit.hasNext())
    {
      Proposition p = (Proposition) iit.next();
      if (p.name.isStatic())
      {
        Set pset = (Set) staticPropositionMap.get(p.name);
        pset.add(p);
      }
View Full Code Here


    //remove static Propositions
    Iterator init = initial.iterator();
    Set staticProps = new HashSet();
    while (init.hasNext())
    {
      Proposition p = (Proposition) init.next();
      if (p.isStatic()) staticProps.add(p);
    }
    initial.removeAll(staticProps);
  }
View Full Code Here

    {
    Iterator dait = S.openActions.iterator();
    while (dait.hasNext())
    {
      DurativeAction da = (DurativeAction) dait.next();
      Proposition p = da.dummyGoal;
      goal.add(getProposition(p));
    }
    }
View Full Code Here

  public static void getAOrderings(Action a, TotalOrderPlan top, PartialOrderPlan pop)
    {
    Iterator cit = a.getConditionalPropositions().iterator();
    while (cit.hasNext())
    {
      Proposition c = (Proposition) cit.next();
      ListIterator bit = top.listIterator(a);
      while (bit.hasPrevious())
      {
        Action b = (Action) bit.previous();
        Set achieves = b.getAddPropositions();
View Full Code Here

  public static void getBOrderings(Action a, TotalOrderPlan top, PartialOrderPlan pop)
    {
    Iterator dit = a.getDeletePropositions().iterator();
    while (dit.hasNext())
    {
      Proposition d = (Proposition) dit.next();
      ListIterator bit = top.listIterator(a);
      while (bit.hasPrevious())
      {
        Action b = (Action) bit.previous();
        Set conds = b.getConditionalPropositions();
View Full Code Here

    Set as = a.getAddPropositions();
    as.retainAll(goals);
    Iterator adit = as.iterator();
    while (adit.hasNext())
    {
      Proposition ad = (Proposition) adit.next();
      ListIterator bit = top.listIterator(a);
      while (bit.hasPrevious())
      {
        Action b = (Action) bit.previous();
        Set dels = b.getDeletePropositions();
View Full Code Here

      PGAction pga = (PGAction) ait.next();

      Iterator csit = pga.action.getConditionalPropositions().iterator();
      while (csit.hasNext())
      {
        Proposition p = (Proposition) csit.next();
        PGProposition pgp = getProposition(p);
        pga.conditions.add(pgp);
        pgp.achieves.add(pga);
      }

      Iterator alit = pga.action.getAddPropositions().iterator();
      while (alit.hasNext())
      {
        Proposition p = (Proposition) alit.next();
        PGProposition pgp = getProposition(p);
        pga.achieves.add(pgp);
        pgp.achievedBy.add(pga);
      }

      Iterator dlit = pga.action.getDeletePropositions().iterator();
      while (dlit.hasNext())
      {
        Proposition p = (Proposition) dlit.next();
        PGProposition pgp = getProposition(p);
        pga.deletes.add(pgp);
        pgp.deletedBy.add(pga);
      }
    }
View Full Code Here

  {
    goal = new HashSet();
    Iterator csit = g.getConditionalPropositions().iterator();
    while (csit.hasNext())
    {
      Proposition p = (Proposition) csit.next();
      PGProposition pgp = getProposition(p);
      goal.add(pgp);
    }
  }
View Full Code Here

    Set i = ((STRIPSState) S).facts;
    initial = new HashSet();
    Iterator csit = i.iterator();
    while (csit.hasNext())
    {
      Proposition p = (Proposition) csit.next();
      PGProposition pgp = getProposition(p);
      initial.add(pgp);
    }
  }
View Full Code Here

TOP

Related Classes of javaff.data.strips.Proposition

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.