Institut de Robòtica i Informàtica Industrial

ActionModel

PURPOSE ^

Action Model constructor.

SYNOPSIS ^

function AM=ActionModel(varargin)

DESCRIPTION ^

   Action Model constructor.

   Defines the basic Action Model object, i.e., the object that includes
   the common part of the different types of action models: with
   discrete/continuous states/actions.
   Currently this basic Action Model is empty and it is only used to
   identify action model objects, idependently of their sub.type: 
   i.e., to use queries such as 'isa(A,'ActionModel')', 
   Moreover, it is also used to provide implementation of functions
   independent of the spacific action model used.

   See also BeliefPredicition.

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:

SOURCE CODE ^

0001 function AM=ActionModel(varargin)
0002 %   Action Model constructor.
0003 %
0004 %   Defines the basic Action Model object, i.e., the object that includes
0005 %   the common part of the different types of action models: with
0006 %   discrete/continuous states/actions.
0007 %   Currently this basic Action Model is empty and it is only used to
0008 %   identify action model objects, idependently of their sub.type:
0009 %   i.e., to use queries such as 'isa(A,'ActionModel')',
0010 %   Moreover, it is also used to provide implementation of functions
0011 %   independent of the spacific action model used.
0012 %
0013 %   See also BeliefPredicition.
0014 
0015   switch nargin
0016     
0017     case 0
0018       AM.dummy=1;
0019       AM=class(AM,'ActionModel');
0020       
0021     case 1
0022       if isa(varargin{1},'ActionModel')
0023         AM=varargin{1};
0024       else
0025         error('Wrong parameter type in ActionModel constructor');
0026       end
0027    
0028     otherwise
0029       error('Wrong number of parameters in ActionModel constructor');
0030   end


Institut de Robòtica i Informàtica Industrial

Generated on Wed 05-Aug-2009 15:05:21 by m2html © 2003