Home > marl > world > world_reset.m

world_reset

PURPOSE ^

Template. Resets the world to its initial state

SYNOPSIS ^

function [w, stateviews] = world_reset(w, restype)

DESCRIPTION ^

Template. Resets the world to its initial state
  [W, STATEVIEWS] = WORLD_RESET(W, [RESTYPE])
  Resets the world to its initial state and reports this state.
  Returns the state of the world as viewed by all the agents within.

  This function is a template and performs no operations. A new epsiodic
  world type must implement this function under the name
  <world_type>_reset. This functions' input and output argument(s) must
  conform to the specifications below.

  Parameters:
   W           - the world
   RESTYPE     - the reset type. Can be 0, soft reset (at the beginning of
       each trial), or 1, hard reset (if the world should be reset to
       scratch, e.g. if learning in it is restarted). When not given,
       should be assumed 0.
  Returns:
   W           - the reset world
   STATEVIEWS  - the agent views over the reset state, one agent view per
               column


  See also world, world_dynamics

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 04-Aug-2010 16:55:08 by m2html © 2005