We currently check that parent tasks of DomainAbstractedTask don't have axioms
and conditional effects by calling the local "static bool
has_conditional_effects(const AbstractTask &task)" function, i.e., on the level
of AbstractTask. In this pull request, we check the same thing for
TransitionNormalFormTask by using
TaskProxy parent_task_proxy(*parent);
verify_no_axioms(parent_task_proxy);
verify_no_conditional_effects(parent_task_proxy);
i.e., on the level of TaskProxy. For TNFTask this is possible since the TNFTask
is hidden in the .cc file and it is the TNFTask factory that makes the check.
We should probably discuss offline if we can use a similar approach for
DomainAbstractedTask.
|