-
Notifications
You must be signed in to change notification settings - Fork 7
/
pfile12-p-0097-clear-road-tree-9-tlt-domain.hddl
executable file
·1931 lines (1740 loc) · 40 KB
/
pfile12-p-0097-clear-road-tree-9-tlt-domain.hddl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(define (domain someDomain)
(:requirements :typing :hierarchy :negative-preconditions :universal-preconditions :method-preconditions :equality)
(:types
bus - vehicle
shelter_leader - adult
construction_crew - work_crew
school - point
power_van - vehicle
transport_hub - point
service_station - point
hazardousness - object
tow_truck - tree_or_tow_truck
town - object
police_van - vehicle
mall - point
snowplow - truck
tree - object
power_crew - work_crew
ambulance - vehicle
tree_crew - work_crew
condition - object
bus_driver - adult
dump_truck - truck
backhoe - truck
emt_crew - adult
hazard_team - work_crew
child - person
tree_truck - tree_or_tow_truck
shelter - point
university - point
truck_driver - adult
plowdriver - adult
generator - object
tree_or_tow_truck - truck
tow_truck_driver - adult
water_truck - truck
truck - vehicle
gas_can - object
powerco - callable
car - vehicle
vehicle - object
hospital - point
waterco - callable
callable - object
park - point
police_unit - adult
food - object
garbage_dump - dump
dump - point
point - object
water_crew - work_crew
work_crew - adult
adult - person
person - object
)
(:constants
fema - callable
ebs - callable
police_chief - callable
very_hazardous - hazardousness
airport - transport_hub
backhoe1 - backhoe
ccrew1 - construction_crew
dtruck1 - dump_truck
henrietta_dump - garbage_dump
park_ridge - hospital
pu1 - police_unit
pvan1 - police_van
rochester_general - hospital
strong - hospital
tcrew1 - tree_crew
tdriver1 - truck_driver
tree_546679 - tree
)
(:predicates
(atloc ?arg0 - object ?arg1 - point)
(in_vehicle ?arg0 - object ?arg1 - vehicle)
(can_drive ?arg0 - adult ?arg1 - vehicle)
(can_lift ?arg0 - person ?arg1 - object)
(fit_in ?arg0 - object ?arg1 - vehicle)
(has_condition ?arg0 - person ?arg1 - condition)
(hazard_seriousness ?arg0 - point ?arg1 - point ?arg2 - hazardousness)
(hospital_doesnt_treat ?arg0 - hospital ?arg1 - condition)
(in_town ?arg0 - point ?arg1 - town)
(no_electricity ?arg0 - point)
(powerco_of ?arg0 - town ?arg1 - powerco)
(road_snowy ?arg0 - point ?arg1 - point)
(serious_condition ?arg0 - condition)
(tree_blocking_road ?arg0 - point ?arg1 - point ?arg2 - tree)
(waterco_of ?arg0 - town ?arg1 - waterco)
(wrecked_vehicle ?arg0 - point ?arg1 - point ?arg2 - vehicle)
(l1)
(l2)
(l3)
(l4)
(l5)
(l6)
(l7)
(l8)
(l9)
(l10)
)
(:task tlt
:parameters ()
)
(:task set_up_shelter
:parameters (?p0 - point)
)
(:task fix_water_main
:parameters (?p0 - point ?p1 - point)
)
(:task clear_road_hazard
:parameters (?p0 - point ?p1 - point)
)
(:task clear_road_wreck
:parameters (?p0 - point ?p1 - point)
)
(:task clear_road_tree
:parameters (?p0 - point ?p1 - point)
)
(:task plow_road
:parameters (?p0 - point ?p1 - point)
)
(:task quell_riot
:parameters (?p0 - point)
)
(:task provide_temp_heat
:parameters (?p0 - person)
)
(:task fix_power_line
:parameters (?p0 - point)
)
(:task provide_medical_attention
:parameters (?p0 - person)
)
(:task turn_on_power
:parameters (?p0 - power_crew ?p1 - point)
)
(:task clear_tree
:parameters (?t0 - tree)
)
(:task close_hole
:parameters (?u0 - point ?u1 - point)
)
(:task clear_wreck
:parameters (?p0 - point ?p1 - point)
)
(:task set_up_cones
:parameters (?p0 - point ?p1 - point)
)
(:task get_in
:parameters (?o0 - object ?v1 - vehicle)
)
(:task get_to
:parameters (?o0 - object ?p1 - point)
)
(:task remove_blockage
:parameters (?t0 - tree)
)
(:task block_road
:parameters (?p0 - point ?p1 - point)
)
(:task take_down_cones
:parameters (?p0 - point ?p1 - point)
)
(:task shut_off_power
:parameters (?p0 - power_crew ?p1 - point)
)
(:task open_hole
:parameters (?p0 - point ?p1 - point)
)
(:task declare_curfew
:parameters (?t0 - town)
)
(:task turn_on_water
:parameters (?p0 - point ?p1 - point)
)
(:task shut_off_water
:parameters (?p0 - point ?p1 - point)
)
(:task clean_up_hazard
:parameters (?p0 - point ?p1 - point)
)
(:task drive_to
:parameters (?p0 - person ?v1 - vehicle ?p2 - point)
)
(:task stabilize
:parameters (?o0 - object)
)
(:task unblock_road
:parameters (?p0 - point ?p1 - point)
)
(:task tow_to
:parameters (?v0 - vehicle ?g1 - garbage_dump)
)
(:task repair_line
:parameters (?p0 - power_crew ?p1 - point)
)
(:task add_fuel
:parameters (?s0 - service_station ?o1 - object)
)
(:task get_out
:parameters (?o0 - object ?v1 - vehicle)
)
(:task repair_pipe
:parameters (?p0 - point ?p1 - point)
)
(:task get_electricity
:parameters (?p0 - point)
)
(:task generate_temp_electricity
:parameters (?p0 - point)
)
(:task emt_treat
:parameters (?o0 - object)
)
(:task make_full_fuel
:parameters (?g0 - generator)
)
(:task cnavegate_vehicle
:parameters (?person - adult ?veh - vehicle ?loc - point ?vehloc - point)
)
(:task cclimb_in
:parameters (?obj - person ?veh - vehicle ?objloc - point)
)
(:task cplace_cones
:parameters (?police - work_crew)
)
(:task cclimb_out
:parameters (?obj - person ?veh - vehicle ?vehloc - point)
)
(:task ccut_tree
:parameters (?crew - tree_crew ?tree - tree)
)
(:method m_tlt_set_up_shelter
:parameters (?p0 - point)
:task (tlt)
:subtasks (and
(task0 (set_up_shelter ?p0))
)
)
(:method m_tlt_fix_water_main
:parameters (?p0 - point ?p1 - point)
:task (tlt)
:subtasks (and
(task0 (fix_water_main ?p0 ?p1))
)
)
(:method m_tlt_clear_road_hazard
:parameters (?p0 - point ?p1 - point)
:task (tlt)
:subtasks (and
(task0 (clear_road_hazard ?p0 ?p1))
)
)
(:method m_tlt_clear_road_wreck
:parameters (?p0 - point ?p1 - point)
:task (tlt)
:subtasks (and
(task0 (clear_road_wreck ?p0 ?p1))
)
)
(:method m_tlt_clear_road_tree
:parameters (?p0 - point ?p1 - point)
:task (tlt)
:subtasks (and
(task0 (clear_road_tree ?p0 ?p1))
)
)
(:method m_tlt_plow_road
:parameters (?p0 - point ?p1 - point)
:task (tlt)
:subtasks (and
(task0 (plow_road ?p0 ?p1))
)
)
(:method m_tlt_quell_riot
:parameters (?p0 - point)
:task (tlt)
:subtasks (and
(task0 (quell_riot ?p0))
)
)
(:method m_tlt_provide_temp_heat
:parameters (?p0 - person)
:task (tlt)
:subtasks (and
(task0 (provide_temp_heat ?p0))
)
)
(:method m_tlt_fix_power_line
:parameters (?p0 - point)
:task (tlt)
:subtasks (and
(task0 (fix_power_line ?p0))
)
)
(:method m_tlt_provide_medical_attention
:parameters (?p0 - person)
:task (tlt)
:subtasks (and
(task0 (provide_medical_attention ?p0))
)
)
(:method m_set_up_shelter
:parameters (?food - food ?leader - shelter_leader ?loc - point)
:task (set_up_shelter ?loc)
:subtasks (and
(task0 (get_electricity ?loc))
(task1 (get_to ?leader ?loc))
(task2 (get_to ?food ?loc))
)
:ordering (and
(< task0 task1)
(< task1 task2)
)
)
(:method m_fix_water_main
:parameters (?from - point ?to - point)
:task (fix_water_main ?from ?to)
:subtasks (and
(task0 (shut_off_water ?from ?to))
(task1 (repair_pipe ?from ?to))
(task2 (turn_on_water ?from ?to))
)
:ordering (and
(< task0 task1)
(< task1 task2)
)
)
(:method m_clear_road_hazard
:parameters (?from - point ?to - point)
:task (clear_road_hazard ?from ?to)
:subtasks (and
(task0 (block_road ?from ?to))
(task1 (clean_up_hazard ?from ?to))
(task2 (unblock_road ?from ?to))
)
:ordering (and
(< task0 task1)
(< task1 task2)
)
)
(:method m_clear_road_wreck
:parameters (?from - point ?to - point)
:task (clear_road_wreck ?from ?to)
:subtasks (and
(task0 (set_up_cones ?from ?to))
(task1 (clear_wreck ?from ?to))
(task2 (take_down_cones ?from ?to))
)
:ordering (and
(< task0 task1)
(< task1 task2)
)
)
(:method m_clear_road_tree
:parameters (?from - point ?to - point ?tree - tree)
:task (clear_road_tree ?from ?to)
:subtasks (and
(task0 (set_up_cones ?from ?to))
(task1 (clear_tree ?tree))
(task2 (take_down_cones ?from ?to))
(task3 (SHOP_methodm_clear_road_tree_precondition ?from ?to ?tree))
)
:ordering (and
(< task3 task0)
(< task0 task1)
(< task1 task2)
)
)
(:method m_plow_road
:parameters (?driver - plowdriver ?from - point ?plow - snowplow ?plowloc - point ?to - point)
:task (plow_road ?from ?to)
:subtasks (and
(task0 (get_to ?driver ?plowloc))
(task1 (navegate_snowplow ?driver ?plow ?from))
(task2 (engage_plow ?driver ?plow))
(task3 (navegate_snowplow ?driver ?plow ?to))
(task4 (disengage_plow ?driver ?plow))
(task5 (SHOP_methodm_plow_road_precondition ?from ?to ?plow ?plowloc))
)
:ordering (and
(< task5 task0)
(< task0 task1)
(< task1 task2)
(< task2 task3)
(< task3 task4)
)
)
(:method m_quell_riot
:parameters (?loc - point ?p1 - police_unit ?p2 - police_unit ?town - town)
:task (quell_riot ?loc)
:subtasks (and
(task0 (declare_curfew ?town))
(task1 (get_to ?p1 ?loc))
(task2 (get_to ?p2 ?loc))
(task3 (set_up_barricades ?p1))
(task4 (set_up_barricades ?p2))
(task5 (SHOP_methodm_quell_riot_precondition ?loc ?town))
)
:ordering (and
(< task5 task0)
(< task0 task1)
(< task1 task2)
(< task2 task3)
(< task3 task4)
)
:constraints (and
(not (= ?p1 ?p2))
)
)
(:method m_provide_temp_heat_to_shelter
:parameters (?person - person ?shelter - shelter)
:task (provide_temp_heat ?person)
:subtasks (and
(task0 (get_to ?person ?shelter))
)
)
(:method m_provide_temp_heat_local_electricity
:parameters (?person - person ?ploc - point)
:task (provide_temp_heat ?person)
:subtasks (and
(task0 (generate_temp_electricity ?ploc))
(task1 (turn_on_heat ?ploc))
(task2 (SHOP_methodm_provide_temp_heat_local_electricity_precondition ?person ?ploc))
)
:ordering (and
(< task2 task0)
(< task0 task1)
)
)
(:method m_fix_power_line
:parameters (?crew - power_crew ?lineloc - point ?van - power_van)
:task (fix_power_line ?lineloc)
:subtasks (and
(task0 (get_to ?crew ?lineloc))
(task1 (get_to ?van ?lineloc))
(task2 (repair_line ?crew ?lineloc))
)
:ordering (and
(< task0 task1)
(< task1 task2)
)
)
(:method m_provide_medical_attention_in_hospital
:parameters (?cond - condition ?hosp - hospital ?person - person)
:task (provide_medical_attention ?person)
:subtasks (and
(task0 (get_to ?person ?hosp))
(task1 (treat_in_hospital ?person ?hosp))
(task2 (SHOP_methodm_provide_medical_attention_in_hospital_precondition ?person ?cond ?hosp))
)
:ordering (and
(< task2 task0)
(< task0 task1)
)
)
(:method m_provide_medical_attention_simple_on_site
:parameters (?cond - condition ?person - person)
:task (provide_medical_attention ?person)
:subtasks (and
(task0 (emt_treat ?person))
(task1 (SHOP_methodm_provide_medical_attention_simple_on_site_precondition ?person ?cond))
)
:ordering (and
(< task1 task0)
)
)
(:method m_clean_up_hazard_very_hazardous
:parameters (?from - point ?to - point)
:task (clean_up_hazard ?from ?to)
:subtasks (and
(task0 (call fema))
(task1 (SHOP_methodm_clean_up_hazard_very_hazardous_precondition ?from ?to very_hazardous))
)
:ordering (and
(< task1 task0)
)
)
(:method m_clean_up_hazard_normal
:parameters (?from - point ?h_compiled_1_ps3 - hazardousness ?ht - hazard_team ?to - point)
:task (clean_up_hazard ?from ?to)
:subtasks (and
(task0 (get_to ?ht ?from))
(task1 (clean_hazard ?ht ?from ?to ?h_compiled_1_ps3))
(task2 (SHOP_methodm_clean_up_hazard_normal_precondition ?from ?to very_hazardous))
)
:ordering (and
(< task2 task0)
(< task0 task1)
)
)
(:method m_block_road
:parameters (?from - point ?police - police_unit ?to - point)
:task (block_road ?from ?to)
:subtasks (and
(task0 (set_up_cones ?from ?to))
(task1 (get_to ?police ?from))
)
:ordering (and
(< task0 task1)
)
)
(:method m_unblock_road
:parameters (?from - point ?to - point)
:task (unblock_road ?from ?to)
:subtasks (and
(task0 (take_down_cones ?from ?to))
)
)
(:method m_get_electricity_noop
:parameters (?loc - point)
:task (get_electricity ?loc)
:subtasks (and
(task0 (SHOP_methodm_get_electricity_noop_precondition ?loc))
)
)
(:method m_get_electricity
:parameters (?loc - point)
:task (get_electricity ?loc)
:subtasks (and
(task0 (generate_temp_electricity ?loc))
(task1 (SHOP_methodm_get_electricity_precondition ?loc))
)
:ordering (and
(< task1 task0)
)
)
(:method m_repair_pipe
:parameters (?crew - water_crew ?from - point ?to - point)
:task (repair_pipe ?from ?to)
:subtasks (and
(task0 (get_to ?crew ?from))
(task1 (set_up_cones ?from ?to))
(task2 (open_hole ?from ?to))
(task3 (replace_pipe ?crew ?from ?to))
(task4 (close_hole ?from ?to))
(task5 (take_down_cones ?from ?to))
)
:ordering (and
(< task0 task1)
(< task1 task2)
(< task2 task3)
(< task3 task4)
(< task4 task5)
)
)
(:method m_open_hole
:parameters (?backhoe - backhoe ?from - point ?to - point)
:task (open_hole ?from ?to)
:subtasks (and
(task0 (get_to ?backhoe ?from))
(task1 (dig ?backhoe ?from))
)
:ordering (and
(< task0 task1)
)
)
(:method m_close_hole
:parameters (?backhoe - backhoe ?from - point ?to - point)
:task (close_hole ?from ?to)
:subtasks (and
(task0 (get_to ?backhoe ?from))
(task1 (fill_in ?backhoe ?from))
)
:ordering (and
(< task0 task1)
)
)
(:method m_set_up_cones
:parameters (?crew - work_crew ?from - point ?to - point)
:task (set_up_cones ?from ?to)
:subtasks (and
(task0 (get_to ?crew ?from))
(task1 (cplace_cones ?crew))
)
:ordering (and
(< task0 task1)
)
)
(:method m_take_down_cones
:parameters (?crew - work_crew ?from - point ?to - point)
:task (take_down_cones ?from ?to)
:subtasks (and
(task0 (get_to ?crew ?from))
(task1 (pickup_cones ?crew))
)
:ordering (and
(< task0 task1)
)
)
(:method m_clear_wreck
:parameters (?dump - garbage_dump ?from - point ?to - point ?veh - vehicle)
:task (clear_wreck ?from ?to)
:subtasks (and
(task0 (tow_to ?veh ?dump))
(task1 (SHOP_methodm_clear_wreck_precondition ?from ?to ?veh))
)
:ordering (and
(< task1 task0)
)
)
(:method m_tow_to
:parameters (?to - garbage_dump ?ttruck - tow_truck ?veh - vehicle ?vehloc - point)
:task (tow_to ?veh ?to)
:subtasks (and
(task0 (get_to ?ttruck ?vehloc))
(task1 (hook_to_tow_truck ?ttruck ?veh))
(task2 (get_to ?ttruck ?to))
(task3 (unhook_from_tow_truck ?ttruck ?veh))
(task4 (SHOP_methodm_tow_to_precondition ?veh ?vehloc))
)
:ordering (and
(< task4 task0)
(< task0 task1)
(< task1 task2)
(< task2 task3)
)
)
(:method m_clear_tree
:parameters (?tcrew - tree_crew ?tree - tree ?treeloc - point)
:task (clear_tree ?tree)
:subtasks (and
(task0 (get_to ?tcrew ?treeloc))
(task1 (ccut_tree ?tcrew ?tree))
(task2 (remove_blockage ?tree))
(task3 (SHOP_methodm_clear_tree_precondition ?tree ?treeloc))
)
:ordering (and
(< task3 task0)
(< task0 task1)
(< task1 task2)
)
)
(:method m_remove_blockage_move_to_side_of_street
:parameters (?crew - work_crew ?loc - point ?stuff - tree)
:task (remove_blockage ?stuff)
:subtasks (and
(task0 (get_to ?crew ?loc))
(task1 (carry_blockage_out_of_way ?crew ?stuff))
(task2 (SHOP_methodm_remove_blockage_move_to_side_of_street_precondition ?stuff ?loc))
)
:ordering (and
(< task2 task0)
(< task0 task1)
)
)
(:method m_remove_blockage_carry_away
:parameters (?dump - garbage_dump ?stuff - tree)
:task (remove_blockage ?stuff)
:subtasks (and
(task0 (get_to ?stuff ?dump))
)
)
(:method m_declare_curfew
:parameters (?town - town)
:task (declare_curfew ?town)
:subtasks (and
(task0 (call ebs))
(task1 (call police_chief))
)
:ordering (and
(< task0 task1)
)
)
(:method m_generate_temp_electricity
:parameters (?gen - generator ?loc - point)
:task (generate_temp_electricity ?loc)
:subtasks (and
(task0 (make_full_fuel ?gen))
(task1 (get_to ?gen ?loc))
(task2 (hook_up ?gen ?loc))
(task3 (turn_on ?gen))
)
:ordering (and
(< task0 task1)
(< task1 task2)
(< task2 task3)
)
)
(:method m_make_full_fuel_with_gas_can
:parameters (?gc - gas_can ?gen - generator ?genloc - point ?ss - service_station)
:task (make_full_fuel ?gen)
:subtasks (and
(task0 (get_to ?gc ?ss))
(task1 (add_fuel ?ss ?gc))
(task2 (get_to ?gc ?genloc))
(task3 (pour_into ?gc ?gen))
(task4 (SHOP_methodm_make_full_fuel_with_gas_can_precondition ?gen ?genloc))
)
:ordering (and
(< task4 task0)
(< task0 task1)
(< task1 task2)
(< task2 task3)
)
)
(:method m_make_full_fuel_at_service_station
:parameters (?gen - generator ?ss - service_station)
:task (make_full_fuel ?gen)
:subtasks (and
(task0 (get_to ?gen ?ss))
(task1 (add_fuel ?ss ?gen))
)
:ordering (and
(< task0 task1)
)
)
(:method m_add_fuel
:parameters (?obj - generator ?ss - service_station)
:task (add_fuel ?ss ?obj)
:subtasks (and
(task0 (pay ?ss))
(task1 (pump_gas_into ?ss ?obj))
)
:ordering (and
(< task0 task1)
)
)
(:method m_repair_line_with_tree
:parameters (?crew - power_crew ?lineloc - point ?tree - tree)
:task (repair_line ?crew ?lineloc)
:subtasks (and
(task0 (shut_off_power ?crew ?lineloc))
(task1 (clear_tree ?tree))
(task2 (remove_wire ?crew ?lineloc))
(task3 (string_wire ?crew ?lineloc))
(task4 (turn_on_power ?crew ?lineloc))
(task5 (SHOP_methodm_repair_line_with_tree_precondition ?tree ?lineloc ?crew))
)
:ordering (and
(< task5 task0)
(< task0 task1)
(< task1 task2)
(< task0 task2)
(< task1 task3)
(< task2 task3)
(< task3 task4)
)
)
(:method m_repair_line_without_tree
:parameters (?crew - power_crew ?lineloc - point)
:task (repair_line ?crew ?lineloc)
:subtasks (and
(task0 (shut_off_power ?crew ?lineloc))
(task1 (remove_wire ?crew ?lineloc))
(task2 (string_wire ?crew ?lineloc))
(task3 (turn_on_power ?crew ?lineloc))
(task4 (SHOP_methodm_repair_line_without_tree_precondition ?lineloc ?crew))
)
:ordering (and
(< task4 task0)
(< task0 task1)
(< task1 task2)
(< task2 task3)
)
)
(:method m_shut_off_power
:parameters (?crew - power_crew ?loc - point ?powerco - powerco ?town - town)
:task (shut_off_power ?crew ?loc)
:subtasks (and
(task0 (call ?powerco))
(task1 (SHOP_methodm_shut_off_power_precondition ?loc ?town ?powerco))
)
:ordering (and
(< task1 task0)
)
)
(:method m_turn_on_power
:parameters (?crew - power_crew ?loc - point ?powerco - powerco ?town - town)
:task (turn_on_power ?crew ?loc)
:subtasks (and
(task0 (call ?powerco))
(task1 (SHOP_methodm_turn_on_power_precondition ?loc ?town ?powerco))
)
:ordering (and
(< task1 task0)
)
)
(:method m_shut_off_water
:parameters (?from - point ?to - point ?town - town ?waterco - waterco)
:task (shut_off_water ?from ?to)
:subtasks (and
(task0 (call ?waterco))
(task1 (SHOP_methodm_shut_off_water_precondition ?from ?town ?waterco))
)
:ordering (and
(< task1 task0)
)
)
(:method m_turn_on_water
:parameters (?from - point ?to - point ?town - town ?waterco - waterco)
:task (turn_on_water ?from ?to)
:subtasks (and
(task0 (call ?waterco))
(task1 (SHOP_methodm_turn_on_water_precondition ?from ?town ?waterco))
)
:ordering (and
(< task1 task0)
)
)
(:method m_emt_treat
:parameters (?emt - emt_crew ?person - person ?personloc - point)
:task (emt_treat ?person)
:subtasks (and
(task0 (get_to ?emt ?personloc))
(task1 (treat ?emt ?person ?personloc))
(task2 (SHOP_methodm_emt_treat_precondition ?person ?personloc))
)
:ordering (and
(< task2 task0)
(< task0 task1)
)
)
(:method m_stabilize
:parameters (?person - person)
:task (stabilize ?person)
:subtasks (and
(task0 (emt_treat ?person))
)
)
(:method m_get_to_already_there
:parameters (?obj - object ?place - point)
:task (get_to ?obj ?place)
:subtasks (and
(task0 (SHOP_methodm_get_to_already_there_precondition ?obj ?place))
)
)
(:method m_get_to_person_drives_themself
:parameters (?person - person ?place - point ?veh - vehicle ?vehloc - point)
:task (get_to ?person ?place)
:subtasks (and
(task0 (drive_to ?person ?veh ?place))
(task1 (SHOP_methodm_get_to_person_drives_themself_precondition ?person ?place ?veh ?vehloc))
)
:ordering (and
(< task1 task0)
)
)
(:method m_get_to_vehicle_gets_driven
:parameters (?person - person ?place - point ?veh - vehicle ?vehloc - point)
:task (get_to ?veh ?place)
:subtasks (and
(task0 (drive_to ?person ?veh ?place))
(task1 (SHOP_methodm_get_to_vehicle_gets_driven_precondition ?veh ?place ?vehloc ?person))
)
:ordering (and
(< task1 task0)
)
)
(:method m_get_to_as_cargo
:parameters (?obj - object ?objloc - point ?place - point ?veh - vehicle)
:task (get_to ?obj ?place)
:subtasks (and
(task0 (get_to ?veh ?objloc))
(task1 (get_in ?obj ?veh))
(task2 (get_to ?veh ?place))
(task3 (get_out ?obj ?veh))
(task4 (SHOP_methodm_get_to_as_cargo_precondition ?obj ?place ?objloc ?veh))
)
:ordering (and
(< task4 task0)
(< task0 task1)
(< task1 task2)
(< task2 task3)
)
)
(:method m_get_to_with_ambulance
:parameters (?obj - person ?objloc - point ?place - point ?veh - ambulance)
:task (get_to ?obj ?place)
:subtasks (and
(task0 (get_to ?veh ?objloc))
(task1 (stabilize ?obj))
(task2 (get_in ?obj ?veh))
(task3 (get_to ?veh ?place))
(task4 (get_out ?obj ?veh))
(task5 (SHOP_methodm_get_to_with_ambulance_precondition ?obj ?place ?objloc ?veh))
)
:ordering (and
(< task5 task0)
(< task0 task1)
(< task1 task2)
(< task2 task3)
(< task3 task4)
)
)
(:method m_drive_to
:parameters (?loc - point ?person - adult ?veh - vehicle ?vehloc - point)
:task (drive_to ?person ?veh ?loc)
:subtasks (and
(task0 (cnavegate_vehicle ?person ?veh ?loc ?vehloc))
(task1 (SHOP_methodm_drive_to_precondition ?veh ?vehloc ?person))
)
:ordering (and
(< task1 task0)
)