示例#1
0
 def add_network_actor(self, ref, actor_id):
     # Type not currently put into actor_id
     self.actor_store[actor_id] = ref
     id_num = ids.num(actor_id)
     self.shared_data.id_at_port(id_num)
     type = ids.type(actor_id)
     self.types[type].add(actor_id)
示例#2
0
 def add_actor(self, id):
   to_store = ids.type(id) + '-' + str(ids.num(id))
   self.actors[to_store] = VisActor(to_store)
示例#3
0
 def get_port(self, actor_id):
     # exception for not exists
     id_num = ids.num(actor_id)
     return self.shared_data.port_from_id(id_num)