def add_rules(self, context, comp=None, fragSender=None, fragReceiver=None, fragSender2=None, fragReceiver2=None):
    ' add rules into the context specified. '
    if (comp is not None):
        self.add_rule(context, 'comp', comp)
    if (fragSender is not None):
        self.add_rule(context, 'fragSender', fragSender)
    if (fragReceiver is not None):
        self.add_rule(context, 'fragReceiver', fragReceiver)
    if (fragSender2 is not None):
        self.add_rule(context, 'fragSender2', fragSender2)
    if (fragReceiver2 is not None):
        self.add_rule(context, 'fragReceiver2', fragReceiver2)
add rules into the context specified.
def add_rules(self, context, comp=None, fragSender=None, fragReceiver=None, fragSender2=None, fragReceiver2=None):
    '  '
    if (comp is not None):
        self.add_rule(context, 'comp', comp)
    if (fragSender is not None):
        self.add_rule(context, 'fragSender', fragSender)
    if (fragReceiver is not None):
        self.add_rule(context, 'fragReceiver', fragReceiver)
    if (fragSender2 is not None):
        self.add_rule(context, 'fragSender2', fragSender2)
    if (fragReceiver2 is not None):
        self.add_rule(context, 'fragReceiver2', fragReceiver2)