Exemplo n.º 1
0
def populate(engine):
  This_rule_base = engine.get_create('krbparse_test')
  
  bc_rule.bc_rule('name2', This_rule_base, 'x',
                  name2, krbparse_test_plans.name2,
                  (pattern.pattern_literal(1),
                   contexts.variable('c'),
                   pattern.pattern_literal((1, 'b',)),
                   pattern.pattern_tuple((pattern.pattern_literal(1), pattern.pattern_literal('b'), contexts.variable('c'),), None),),
                  ('plan', 'd',),
                  (pattern.pattern_literal('x'),
                   contexts.variable('c'),
                   contexts.variable('plan#1'),
                   pattern.pattern_literal(1),
                   pattern.pattern_literal(2),
                   pattern.pattern_literal(3),
                   contexts.variable('plan#2'),))
  
  bc_rule.bc_rule('name3', This_rule_base, 'x',
                  name3, krbparse_test_plans.name3,
                  (pattern.pattern_literal(1),
                   contexts.variable('c'),
                   pattern.pattern_literal((1, 'b',)),
                   pattern.pattern_tuple((pattern.pattern_literal(1), pattern.pattern_literal('b'), contexts.variable('c'),), None),),
                  ('d',),
                  (pattern.pattern_literal('x'),
                   contexts.variable('c'),
                   contexts.variable('plan#1'),
                   pattern.pattern_literal(1),
                   pattern.pattern_literal(2),
                   pattern.pattern_literal(3),
                   contexts.variable('foo_fn'),))
Exemplo n.º 2
0
def populate(engine):
    This_rule_base = engine.get_create('door')

    bc_rule.bc_rule('open', This_rule_base, 'open', open, None, (), (),
                    (pattern.pattern_literal(True), ))

    bc_rule.bc_rule('kick', This_rule_base, 'open', kick, None, (), (), ())
def populate(engine):
    This_rule_base = engine.get_create('remedyget')

    bc_rule.bc_rule('get', This_rule_base, 'get', get, None, (
        contexts.variable('fault'),
        contexts.variable('remedy'),
    ), (), (
        contexts.variable('fault'),
        contexts.variable('remedy'),
    ))
def populate(engine):
    This_rule_base = engine.get_create('regras')

    bc_rule.bc_rule('febre', This_rule_base, 'febre', febre, None, (
        contexts.variable('temperatura'),
        contexts.variable('dia'),
    ), (), (
        contexts.variable('fahrenheit'),
        contexts.variable('unit'),
        contexts.variable('celsius'),
    ))
Exemplo n.º 5
0
def populate(engine):
  This_rule_base = engine.get_create('key')
  
  bc_rule.bc_rule('take', This_rule_base, 'take',
                  take, None,
                  (),
                  (),
                  (pattern.pattern_literal(True),))
  
  bc_rule.bc_rule('eat', This_rule_base, 'eat',
                  eat, None,
                  (),
                  (),
                  ())
  
  bc_rule.bc_rule('poop', This_rule_base, 'poop',
                  poop, None,
                  (),
                  (),
                  ())
  
  bc_rule.bc_rule('drop', This_rule_base, 'drop',
                  drop, None,
                  (),
                  (),
                  ())
Exemplo n.º 6
0
def populate(engine):
    This_rule_base = engine.get_create('example')

    bc_rule.bc_rule('half_siblings_same_father', This_rule_base,
                    'half_sibling', half_siblings_same_father, None, (
                        contexts.variable('af'),
                        contexts.variable('bf'),
                    ), (), (
                        contexts.variable('af'),
                        contexts.variable('father'),
                        contexts.variable('mother1'),
                        contexts.variable('bf'),
                        contexts.variable('mother2'),
                    ))
Exemplo n.º 7
0
def populate(engine):
  This_rule_base = engine.get_create('chest')
  
  bc_rule.bc_rule('open', This_rule_base, 'open',
                  open, None,
                  (),
                  (),
                  (pattern.pattern_literal(True),))
  
  bc_rule.bc_rule('kick', This_rule_base, 'kick',
                  kick, None,
                  (),
                  (),
                  ())
Exemplo n.º 8
0
def populate(engine):
  This_rule_base = engine.get_create('subway_rules')
  
  bc_rule.bc_rule('at_station', This_rule_base, 'at_station',
                  at_station, None,
                  (contexts.variable('station'),),
                  (),
                  (contexts.variable('from'),
                   contexts.variable('line'),
                   contexts.variable('station'),
                   pattern.pattern_tuple((contexts.variable('line'),), None),
                   contexts.anonymous('_'),))
  
  bc_rule.bc_rule('travel_on_same_line', This_rule_base, 'take_line',
                  travel_on_same_line, None,
                  (contexts.variable('from'),
                   contexts.variable('line'),
                   contexts.variable('to'),),
                  (),
                  (contexts.variable('from'),
                   pattern.pattern_tuple((contexts.variable('line'),), None),
                   contexts.anonymous('_'),
                   contexts.variable('to'),))
  
  bc_rule.bc_rule('connected_stations', This_rule_base, 'connected',
                  connected_stations, None,
                  (contexts.variable('from'),
                   contexts.variable('to'),),
                  (),
                  (contexts.variable('from'),
                   contexts.variable('line'),
                   contexts.anonymous('_'),
                   contexts.variable('to'),))
Exemplo n.º 9
0
def populate(engine):
    This_rule_base = engine.get_create('Remedyrule')

    bc_rule.bc_rule('get', This_rule_base, 'get', get, None, (
        contexts.variable('fault'),
        contexts.variable('actualfault'),
        contexts.variable('remedy'),
    ), (), (
        contexts.variable('responsefault'),
        contexts.variable('fault'),
        contexts.variable('VMfault'),
        contexts.variable('PMfault'),
        contexts.variable('finalfault'),
        contexts.variable('actualfault'),
        contexts.variable('remedy'),
    ))

    bc_rule.bc_rule('arr', This_rule_base, 'ar', arr, None, (
        contexts.variable('responsefault'),
        contexts.variable('fault'),
    ), (), (
        contexts.variable('resp'),
        contexts.variable('responsefault'),
    ))

    bc_rule.bc_rule('VM', This_rule_base, 'VM', VM, None, (
        contexts.variable('VMfault'),
        contexts.variable('fault'),
    ), (), (
        contexts.variable('ft'),
        contexts.variable('VMfault'),
    ))

    bc_rule.bc_rule('PM', This_rule_base, 'PM', PM, None, (
        contexts.variable('PMfault'),
        contexts.variable('fault'),
    ), (), (
        contexts.variable('pt'),
        contexts.variable('PMfault'),
    ))
Exemplo n.º 10
0
def populate(engine):
  This_rule_base = engine.get_create('bc_regras')
  
  bc_rule.bc_rule('diagnostico_1', This_rule_base, 'diagnostico_1',
                  diagnostico_1, None,
                  (contexts.variable('febre'),
                   contexts.variable('dia_febre'),
                   contexts.variable('dia_manchas'),
                   contexts.variable('dorMuscular'),
                   contexts.variable('doenca'),),
                  (),
                  (contexts.variable('febre'),
                   contexts.variable('dia_febre'),
                   contexts.variable('doenca1'),
                   contexts.variable('dia_manchas'),
                   contexts.variable('doenca2'),
                   contexts.variable('dorMuscular'),
                   contexts.variable('doenca3'),
                   contexts.variable('doenca'),))
  
  bc_rule.bc_rule('diagnostico_2', This_rule_base, 'diagnostico_2',
                  diagnostico_2, None,
                  (contexts.variable('dorArticulacao'),
                   contexts.variable('intesiDorArtic'),
                   contexts.variable('edema'),
                   contexts.variable('doenca'),),
                  (),
                  (contexts.variable('dorArticulacao'),
                   contexts.variable('doenca4'),
                   contexts.variable('intesiDorArtic'),
                   contexts.variable('doenca5'),
                   contexts.variable('edema'),
                   contexts.variable('doenca6'),
                   contexts.variable('doenca'),))
  
  bc_rule.bc_rule('diagnostico_3', This_rule_base, 'diagnostico_3',
                  diagnostico_3, None,
                  (contexts.variable('conjuntivite'),
                   contexts.variable('dorCabeca'),
                   contexts.variable('coceira'),
                   contexts.variable('doenca'),),
                  (),
                  (contexts.variable('conjuntivite'),
                   contexts.variable('probabilidade'),
                   contexts.variable('doenca7'),
                   contexts.variable('dorCabeca'),
                   contexts.variable('doenca8'),
                   contexts.variable('coceira'),
                   contexts.variable('doenca9'),
                   contexts.variable('doenca'),))
  
  bc_rule.bc_rule('diagnostico_4', This_rule_base, 'diagnostico_4',
                  diagnostico_4, None,
                  (contexts.variable('hipertrofia'),
                   contexts.variable('discrasia'),
                   contexts.variable('acometimento'),
                   contexts.variable('neonato'),
                   contexts.variable('doenca'),),
                  (),
                  (contexts.variable('hipertrofia'),
                   contexts.variable('doenca10'),
                   contexts.variable('discrasia'),
                   contexts.variable('doenca11'),
                   contexts.variable('acometimento'),
                   contexts.variable('frequencia'),
                   contexts.variable('neonato'),
                   contexts.variable('doenca12'),
                   contexts.variable('doenca'),))
  
  bc_rule.bc_rule('resulta_diagnostico', This_rule_base, 'diagnostico_resultado',
                  resulta_diagnostico, None,
                  (contexts.variable('febre'),
                   contexts.variable('dia_febre'),
                   contexts.variable('dia_manchas'),
                   contexts.variable('dorMuscular'),
                   contexts.variable('dorArticulacao'),
                   contexts.variable('intesiDorArtic'),
                   contexts.variable('edema'),
                   contexts.variable('conjuntivite'),
                   contexts.variable('dorCabeca'),
                   contexts.variable('coceira'),
                   contexts.variable('hipertrofia'),
                   contexts.variable('discrasia'),
                   contexts.variable('acometimento'),
                   contexts.variable('neonato'),
                   contexts.variable('doenca'),),
                  (),
                  (contexts.variable('febre'),
                   contexts.variable('dia_febre'),
                   contexts.variable('dia_manchas'),
                   contexts.variable('dorMuscular'),
                   contexts.variable('doenca51'),
                   contexts.variable('dorArticulacao'),
                   contexts.variable('intesiDorArtic'),
                   contexts.variable('edema'),
                   contexts.variable('doenca52'),
                   contexts.variable('conjuntivite'),
                   contexts.variable('dorCabeca'),
                   contexts.variable('coceira'),
                   contexts.variable('doenca53'),
                   contexts.variable('hipertrofia'),
                   contexts.variable('discrasia'),
                   contexts.variable('acometimento'),
                   contexts.variable('neonato'),
                   contexts.variable('doenca54'),
                   contexts.variable('doenca'),))
Exemplo n.º 11
0
def populate(engine):
    This_rule_base = engine.get_create('rules')

    bc_rule.bc_rule('diagnostico', This_rule_base, 'diagnostico', diagnostico,
                    None, (contexts.variable('resultado'), ), (), (
                        contexts.variable('result1'),
                        contexts.variable('hipertrofiaganglionar'),
                        contexts.variable('discrasia'),
                        contexts.variable('resultado'),
                    ))

    bc_rule.bc_rule('diagnostico1', This_rule_base, 'diagnostico1',
                    diagnostico1, None, (contexts.variable('result1'), ), (), (
                        contexts.variable('febre2'),
                        contexts.variable('mancha2'),
                        contexts.variable('dormuscular'),
                        contexts.variable('articular2'),
                        contexts.variable('conjuntivite'),
                        contexts.variable('edemartic'),
                        contexts.variable('dordecabeca'),
                        contexts.variable('acometimentoneurologico'),
                        contexts.variable('coceiraa'),
                        contexts.variable('result1'),
                    ))

    bc_rule.bc_rule('int_febre', This_rule_base, 'int_febre', int_febre, None,
                    (contexts.variable('intfebre'), ), (), (
                        contexts.variable('ans_febre2'),
                        contexts.variable('intfebre'),
                    ))

    bc_rule.bc_rule('int_mancha', This_rule_base, 'int_mancha', int_mancha,
                    None, (contexts.variable('intmancha'), ), (), (
                        contexts.variable('ans_mancha2'),
                        contexts.variable('intmancha'),
                    ))

    bc_rule.bc_rule('int_dormuscular', This_rule_base, 'int_dormuscular',
                    int_dormuscular, None,
                    (contexts.variable('intdormuscular'), ), (), (
                        contexts.variable('ans_dor_musc'),
                        contexts.variable('intdormuscular'),
                    ))

    bc_rule.bc_rule('freq_dorarticular', This_rule_base, 'freq_dorarticular',
                    freq_dorarticular, None,
                    (contexts.variable('intdorarticular'), ), (), (
                        contexts.variable('ans_dor_art2'),
                        contexts.variable('intdorarticular'),
                    ))

    bc_rule.bc_rule('tem_conjuntivite', This_rule_base, 'tem_conjuntivite',
                    tem_conjuntivite, None,
                    (contexts.variable('temconjuntivite'), ), (), (
                        contexts.variable('ans_conjuntivite'),
                        contexts.variable('temconjuntivite'),
                    ))

    bc_rule.bc_rule('int_edemaart', This_rule_base, 'int_edemaart',
                    int_edemaart, None, (contexts.variable('intedemart'), ),
                    (), (
                        contexts.variable('ans_edemart'),
                        contexts.variable('intedemart'),
                    ))

    bc_rule.bc_rule('int_dorcabeca', This_rule_base, 'int_dorcabeca',
                    int_dorcabeca, None, (contexts.variable('intdorcabeca'), ),
                    (), (
                        contexts.variable('ans_dorcabeca'),
                        contexts.variable('intdorcabeca'),
                    ))

    bc_rule.bc_rule('int_coceira', This_rule_base, 'int_coceira', int_coceira,
                    None, (contexts.variable('intcoceira'), ), (), (
                        contexts.variable('ans_coceira'),
                        contexts.variable('intcoceira'),
                    ))

    bc_rule.bc_rule('int_acrometimentoNeurologico', This_rule_base,
                    'int_acrometimentoNeurologico',
                    int_acrometimentoNeurologico, None,
                    (contexts.variable('intacrometimentoNeurologico'), ), (), (
                        contexts.variable('ans_acrometimentoNeurologico'),
                        contexts.variable('intacrometimentoNeurologico'),
                    ))

    bc_rule.bc_rule('int_hipertrofiaganglionar', This_rule_base,
                    'int_hipertrofiaganglionar', int_hipertrofiaganglionar,
                    None, (contexts.variable('inthipertrofiaganglionar'), ),
                    (), (
                        contexts.variable('ans_hipertrofiaganglionar'),
                        contexts.variable('inthipertrofiaganglionar'),
                    ))

    bc_rule.bc_rule('int_discrasiahemorragica', This_rule_base,
                    'int_discrasiahemorragica', int_discrasiahemorragica, None,
                    (contexts.variable('intdiscrasiahemorragica'), ), (), (
                        contexts.variable('ans_discrasiahemorragica'),
                        contexts.variable('intdiscrasiahemorragica'),
                    ))
def populate(engine):
  This_rule_base = engine.get_create('category_rules')
  
  bc_rule.bc_rule('ordered_rule0', This_rule_base, 'top2',
                  ordered_rule0, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('nature'),),
                  (),
                  (pattern.pattern_literal(1),
                   pattern.pattern_literal('d'),
                   pattern.pattern_literal(2),
                   pattern.pattern_literal('b'),
                   pattern.pattern_literal(4),
                   pattern.pattern_literal(11),))
  
  bc_rule.bc_rule('ordered_rule1', This_rule_base, 'top2',
                  ordered_rule1, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('nature'),),
                  (),
                  (pattern.pattern_literal(1),
                   pattern.pattern_literal('d'),
                   pattern.pattern_literal(4),
                   pattern.pattern_literal('a'),
                   pattern.pattern_literal(6),
                   pattern.pattern_literal('b'),))
  
  bc_rule.bc_rule('ordered_rule2', This_rule_base, 'top2',
                  ordered_rule2, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('dining'),),
                  (),
                  (pattern.pattern_literal(1),
                   pattern.pattern_literal('d'),
                   pattern.pattern_literal(5),
                   pattern.pattern_literal('b'),
                   pattern.pattern_literal(9),
                   pattern.pattern_literal('a'),))
  
  bc_rule.bc_rule('ordered_rule3', This_rule_base, 'top2',
                  ordered_rule3, None,
                  (pattern.pattern_literal('relaxation'),
                   pattern.pattern_literal('nature'),),
                  (),
                  (pattern.pattern_literal(1),
                   pattern.pattern_literal('b'),
                   pattern.pattern_literal(6),))
  
  bc_rule.bc_rule('ordered_rule4', This_rule_base, 'top2',
                  ordered_rule4, None,
                  (pattern.pattern_literal('outdoor'),
                   pattern.pattern_literal('nature'),),
                  (),
                  (pattern.pattern_literal(1),
                   contexts.variable('num'),
                   pattern.pattern_literal(8),
                   pattern.pattern_literal('a'),
                   pattern.pattern_literal(13),
                   pattern.pattern_literal('b'),))
  
  bc_rule.bc_rule('ordered_rule5', This_rule_base, 'top2',
                  ordered_rule5, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('dining'),),
                  (),
                  (pattern.pattern_literal(1),
                   pattern.pattern_literal('b'),
                   pattern.pattern_literal(4),
                   pattern.pattern_literal('a'),
                   pattern.pattern_literal(11),))
  
  bc_rule.bc_rule('ordered_rule6', This_rule_base, 'top2',
                  ordered_rule6, None,
                  (pattern.pattern_literal('relaxation'),
                   pattern.pattern_literal('nature'),),
                  (),
                  (pattern.pattern_literal(1),
                   contexts.variable('num'),
                   pattern.pattern_literal(10),
                   pattern.pattern_literal('b'),))
  
  bc_rule.bc_rule('ordered_rule7', This_rule_base, 'top2',
                  ordered_rule7, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('dining'),),
                  (),
                  (pattern.pattern_literal(6),
                   pattern.pattern_literal('b'),
                   pattern.pattern_literal(7),
                   pattern.pattern_literal(9),
                   pattern.pattern_literal('a'),))
  
  bc_rule.bc_rule('ordered_rule8', This_rule_base, 'top2',
                  ordered_rule8, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('cultural'),),
                  (),
                  (pattern.pattern_literal(1),
                   contexts.variable('num'),
                   pattern.pattern_literal(2),
                   pattern.pattern_literal('a'),
                   pattern.pattern_literal(3),))
  
  bc_rule.bc_rule('ordered_rule9', This_rule_base, 'top2',
                  ordered_rule9, None,
                  (pattern.pattern_literal('outdoor'),
                   pattern.pattern_literal('nature'),),
                  (),
                  (pattern.pattern_literal(2),
                   pattern.pattern_literal('b'),
                   pattern.pattern_literal(3),
                   pattern.pattern_literal('a'),
                   pattern.pattern_literal(6),))
  
  bc_rule.bc_rule('ordered_rule10', This_rule_base, 'top2',
                  ordered_rule10, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('nature'),),
                  (),
                  (pattern.pattern_literal(7),
                   pattern.pattern_literal('a'),
                   pattern.pattern_literal(13),))
  
  bc_rule.bc_rule('ordered_rule11', This_rule_base, 'top2',
                  ordered_rule11, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('relaxation'),),
                  (),
                  (pattern.pattern_literal(4),
                   pattern.pattern_literal('b'),
                   pattern.pattern_literal(6),
                   pattern.pattern_literal(12),))
  
  bc_rule.bc_rule('ordered_rule12', This_rule_base, 'top2',
                  ordered_rule12, None,
                  (pattern.pattern_literal('dining'),
                   pattern.pattern_literal('relaxation'),),
                  (),
                  (pattern.pattern_literal(5),
                   pattern.pattern_literal('b'),
                   pattern.pattern_literal(10),))
  
  bc_rule.bc_rule('ordered_rule13', This_rule_base, 'top2',
                  ordered_rule13, None,
                  (pattern.pattern_literal('outdoor'),
                   pattern.pattern_literal('nature'),),
                  (),
                  (pattern.pattern_literal(6),
                   pattern.pattern_literal('b'),))
  
  bc_rule.bc_rule('ordered_rule14', This_rule_base, 'top2',
                  ordered_rule14, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('nature'),),
                  (),
                  (pattern.pattern_literal(1),
                   contexts.variable('num'),
                   pattern.pattern_literal(3),
                   pattern.pattern_literal('b'),
                   pattern.pattern_literal(7),
                   pattern.pattern_literal('a'),))
  
  bc_rule.bc_rule('ordered_rule15', This_rule_base, 'top2',
                  ordered_rule15, None,
                  (pattern.pattern_literal('dining'),
                   pattern.pattern_literal('nature'),),
                  (),
                  (pattern.pattern_literal(7),
                   pattern.pattern_literal('a'),
                   pattern.pattern_literal(10),))
  
  bc_rule.bc_rule('ordered_rule16', This_rule_base, 'top2',
                  ordered_rule16, None,
                  (pattern.pattern_literal('relaxation'),
                   pattern.pattern_literal('nature'),),
                  (),
                  (pattern.pattern_literal(4),
                   pattern.pattern_literal('a'),
                   pattern.pattern_literal(13),
                   pattern.pattern_literal('b'),))
  
  bc_rule.bc_rule('ordered_rule17', This_rule_base, 'top2',
                  ordered_rule17, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('relaxation'),),
                  (),
                  (pattern.pattern_literal(1),
                   contexts.variable('num'),
                   pattern.pattern_literal(7),
                   pattern.pattern_literal('b'),
                   pattern.pattern_literal(13),))
  
  bc_rule.bc_rule('ordered_rule18', This_rule_base, 'top2',
                  ordered_rule18, None,
                  (pattern.pattern_literal('dining'),
                   pattern.pattern_literal('relaxation'),),
                  (),
                  (pattern.pattern_literal(2),
                   pattern.pattern_literal('a'),
                   pattern.pattern_literal(9),
                   pattern.pattern_literal('b'),))
  
  bc_rule.bc_rule('ordered_rule19', This_rule_base, 'top2',
                  ordered_rule19, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('outdoor'),),
                  (),
                  (pattern.pattern_literal(2),
                   pattern.pattern_literal('b'),))
  
  bc_rule.bc_rule('ordered_rule20', This_rule_base, 'top2',
                  ordered_rule20, None,
                  (pattern.pattern_literal('dining'),
                   pattern.pattern_literal('relaxation'),),
                  (),
                  (pattern.pattern_literal(1),
                   pattern.pattern_literal('a'),))
  
  bc_rule.bc_rule('ordered_rule21', This_rule_base, 'top2',
                  ordered_rule21, None,
                  (pattern.pattern_literal('sights'),
                   pattern.pattern_literal('nature'),),
                  (),
                  ())
Exemplo n.º 13
0
def populate(engine):
    This_rule_base = engine.get_create('deseases')

    bc_rule.bc_rule('dengue_package', This_rule_base, 'desease',
                    dengue_package, None, (
                        pattern.pattern_literal('dengue'),
                        contexts.variable('u'),
                    ), (), ())

    bc_rule.bc_rule('dengue_not_chikungunha', This_rule_base, 'desease',
                    dengue_not_chikungunha, None, (
                        pattern.pattern_literal('dengue'),
                        contexts.variable('u'),
                    ), (), ())

    bc_rule.bc_rule('zika_package', This_rule_base, 'desease', zika_package,
                    None, (
                        pattern.pattern_literal('zika'),
                        contexts.variable('u'),
                    ), (), ())

    bc_rule.bc_rule('zika_not_chikungunha', This_rule_base, 'desease',
                    zika_not_chikungunha, None, (
                        pattern.pattern_literal('zika'),
                        contexts.variable('u'),
                    ), (), ())

    bc_rule.bc_rule('zika_itching', This_rule_base, 'desease', zika_itching,
                    None, (
                        pattern.pattern_literal('zika'),
                        contexts.variable('u'),
                    ), (), ())

    bc_rule.bc_rule('chikungunha_package', This_rule_base, 'desease',
                    chikungunha_package, None, (
                        pattern.pattern_literal('chikungunha'),
                        contexts.variable('u'),
                    ), (), ())

    bc_rule.bc_rule('chikungunha_not_dengue', This_rule_base, 'desease',
                    chikungunha_not_dengue, None, (
                        pattern.pattern_literal('chikungunha'),
                        contexts.variable('u'),
                    ), (), ())