File size: 658 Bytes
acad479
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import numpy as np


class Clause(object):

    def __init__(self, action):

        # if observers is not None:
        #     assert 0 not in observers, "Observer IDs must be 1-indexed"
        # self.observers = observers
        self.action = action

    def render(self):
        return self.action.render_declarative()  # + \
        # ('\t' + ' '.join([str(x) for x in self.observers])
        # if self.observers is not None else '')


class Question(Clause):

    def __init__(self, idx_support, action):
        self.idx_support = idx_support
        super().__init__(action)

    def render(self):
        return self.action.render_interrogative()