Exemplo n.º 1
0
 def __init__(self, lifespan=None):
     Grid_2D_World.__init__(self, lifespan)
     self.name = 'grid_2D_dc'
     self.name_long = 'decoupled two dimensional grid world'
     print ", decoupled"
     self.num_sensors = self.world_size * 2
     self.VISUALIZE_PERIOD = 10**3
     self.display_state = False
Exemplo n.º 2
0
 def __init__(self, lifespan=None):
     Grid_2D_World.__init__(self, lifespan)
     self.name = 'grid_2D_dc'
     self.name_long = 'decoupled two dimensional grid world'
     print ", decoupled"
     self.num_sensors = self.world_size * 2
     self.VISUALIZE_PERIOD = 10 ** 3
     self.display_state = False
Exemplo n.º 3
0
 def __init__(self, lifespan=None, test=False):
     """ 
     Set up the world based on the grid_2D world
     """
     Grid_2D_World.__init__(self, lifespan)
     self.name = 'grid_2D_dc'
     self.name_long = 'decoupled two dimensional grid world'
     print ", decoupled"
     self.num_sensors = self.world_size * 2
Exemplo n.º 4
0
    def __init__(self, lifespan=None):
        """ 
        Set up the world based on the grid_2D world.

        Parameters
        ----------
        lifespan : int 
            The number of time steps to continue the world.
        """
        Grid_2D_World.__init__(self, lifespan)
        self.name = 'grid_2D_dc'
        self.name_long = 'decoupled two dimensional grid world'
        print ", decoupled"
        self.num_sensors = self.world_size * 2
Exemplo n.º 5
0
    def __init__(self, lifespan=None):
        """ 
        Set up the world based on the grid_2D world.

        Parameters
        ----------
        lifespan : int 
            The number of time steps to continue the world.
        """
        Grid_2D_World.__init__(self, lifespan)
        self.name = "grid_2D_dc"
        self.name_long = "decoupled two dimensional grid world"
        print ", decoupled"
        self.num_sensors = self.world_size * 2