Package teamwork :: Package examples :: Package school :: Module SchoolClasses
[hide private]
[frames] | no frames]

Module SchoolClasses

source code

Variables [hide private]
  teacher = {'abusive': {'action': {'type': 'punishAll'}, 'actor...
  TeacherModels = {'fair': {'goals': [{'direction': 'max', 'enti...
  rules = {'attention': {'action': {'object': 'victim', 'type': ...
  OnlookerModels = {'discouraging': {'goals': [{'direction': 'ma...
  VictimModels = {'passive': {'goals': [{'direction': 'max', 'en...
  BullyModels = {'attention-seeking': {'goals': [{'direction': '...
  EMPTY_NAMESPACE = None
  EMPTY_PREFIX = None
  StringTypes = (<type 'str'>, <type 'unicode'>)
  XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
Variables Details [hide private]

teacher

Value:
{'abusive': {'action': {'type': 'punishAll'},
             'actor': 'bully',
             'class': 'observation',
             'depth': 4,
             'type': 'pickOn'},
 'conditional': {'action': {'object': 'bully', 'type': 'punish'},
                 'class': 'conjunction',
                 'clauses': [{'class': 'belief', 'keys': ['entities', \
...

TeacherModels

Value:
{'fair': {'goals': [{'direction': 'max',
                     'entity': ['Student'],
                     'key': 'power',
                     'type': 'state',
                     'weight': 0.5}],
          'policy': [{'action': {'type': 'punishAll'},
                      'class': 'observation',
                      'depth': 4,
...

rules

Value:
{'attention': {'action': {'object': 'victim', 'type': 'pickOn'},
               'class': 'conjunction',
               'clauses': [{'class': 'observation',
                            'depth': 4,
                            'object': 'victim',
                            'type': 'laughAt'},
                           {'actor': 'self',
                            'class': 'observation',
...

OnlookerModels

Value:
{'discouraging': {'goals': [{'direction': 'max',
                             'entity': ['self'],
                             'key': 'power',
                             'type': 'state',
                             'weight': 1.0}],
                  'policy': [{'action': {'type': 'wait'},
                              'class': 'default'}]},
 'encouraging': {'goals': [{'direction': 'min', 'entity': ['victim'], \
...

VictimModels

Value:
{'passive': {'goals': [{'direction': 'max',
                        'entity': ['self'],
                        'key': 'power',
                        'type': 'state',
                        'weight': 1.0}],
             'policy': [{'action': {'type': 'wait'},
                         'class': 'default'}]},
 'vindictive': {'goals': [{'direction': 'max', 'entity': ['self'], 'ke\
...

BullyModels

Value:
{'attention-seeking': {'goals': [{'direction': 'max',
                                  'entity': ['self'],
                                  'key': 'power',
                                  'type': 'state',
                                  'weight': 0.1},
                                 {'direction': 'max',
                                  'entity': ['Onlooker'],
                                  'key': 'laughAt',
...