Example #1
0
    def __init__(self, request_id, agent_id):
        Message.__init__(self)
        self.request_id_comp = IntComp()
        self.agent_id_comp = EntityIDComp()

        self.add_component(self.request_id_comp)
        self.add_component(self.agent_id_comp)

        self.set_message(request_id, agent_id)
Example #2
0
    def __init__(self):
        Message.__init__(self)
        self.request_id_comp = IntComp()
        self.agent_id_comp = EntityIDComp()
        self.world_comp = EntityListComp()
        self.config_comp = ConfigComp()

        self.add_component(self.request_id_comp)
        self.add_component(self.agent_id_comp)
        self.add_component(self.world_comp)
        self.add_component(self.config_comp)
Example #3
0
class AKAcknowledge(Message):
    urn = 'urn:rescuecore2:messages.control:ak_acknowledge'

    def __init__(self, request_id, agent_id):
        Message.__init__(self)
        self.request_id_comp = IntComp()
        self.agent_id_comp = EntityIDComp()

        self.add_component(self.request_id_comp)
        self.add_component(self.agent_id_comp)

        self.set_message(request_id, agent_id)

    def set_message(self, request_id, agent_id):
        self.request_id_comp.set_value(request_id)
        self.agent_id_comp.set_value(agent_id)
Example #4
0
    def __init__(self):
        Message.__init__(self)
        self.agent_id = EntityIDComp()
        self.time = IntComp()
        self.updates = ChangeSetComp()
        self.hear = CommandListComp()

        self.add_component(self.agent_id)
        self.add_component(self.time)
        self.add_component(self.updates)
        self.add_component(self.hear)
Example #5
0
class KAConnectOK(Message):
    urn = 'urn:rescuecore2:messages.control:ka_connect_ok'

    def __init__(self):
        Message.__init__(self)
        self.request_id_comp = IntComp()
        self.agent_id_comp = EntityIDComp()
        self.world_comp = EntityListComp()
        self.config_comp = ConfigComp()

        self.add_component(self.request_id_comp)
        self.add_component(self.agent_id_comp)
        self.add_component(self.world_comp)
        self.add_component(self.config_comp)

    def set_message(self, request_id, agent_id, entities, config):
        self.request_id_comp.set_value(request_id)
        self.agent_id_comp.set_value(agent_id)
        self.world_comp.set_entities(entities)
        self.config_comp.set_config(config)
Example #6
0
 def __init__(self):
     Command.__init__(self)
     self.target = EntityIDComp()
     self.add_component(self.target)
Example #7
0
 def __init__(self):
     Message.__init__(self)
     self.agent_id = EntityIDComp()
     self.time = IntComp()
     self.add_component(self.agent_id)
     self.add_component(self.time)