summaryrefslogtreecommitdiff
path: root/modeling/prod_vis.py
blob: 2bcbcc872b60ffda884a0cd55bdca4a04bbad10e (plain)
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
#!/usr/bin/env python3

def procedures(Model):
    prods = []

    vis_find_arg1_header = Model.productionstring(
        name = "vis_find_arg1_header",
        string="""
        =g>
        isa         math_goal
        op          vis_find_arg1
        arg1        =var
        ==>
        =g>
        isa         math_goal
        op          find_arg1_header
        ?visual_location>
        attended    False
        +visual_location>
        isa         _visuallocation
        value       =var
        """
    )

    vis_find_arg1_header_done = Model.productionstring(
        name = "vis_find_arg1_header_done",
        string="""
        =g>
        isa         math_goal
        op          find_arg1_header
        arg1        =var
        arg1_idx    =idx
        =visual_location>
        isa         _visuallocation
        screen_x    =screen_x
        screen_y    =screen_y
        ?visual>
        state       free
        ==>
        =g>
        isa         math_goal
        op          search_arg1_idx
        +visual_location>
        isa         _visuallocation
        screen_x    =screen_x
        >screen_y  =screen_y
        """
    )

    return prods

        # +visual>
        # isa         _visual
        # cmd         move_attention
        # screen_pos  =visual_location
        # ~visual_location>