示例#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)
示例#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)
示例#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)
示例#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)
示例#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)
示例#6
0
 def __init__(self):
     Command.__init__(self)
     self.target = EntityIDComp()
     self.add_component(self.target)
示例#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)