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);
}
}