Robochameleon  v1.0
isModule.m
Go to the documentation of this file.
1 function y = isModule( klass )
2  if(~ischar(klass))
3  robolog('class is supposed to be a string/char.','ERR');
4  end
5  temp=superclasses(klass);
6  if(isempty(temp))
7  y=0;
8  else
9  if iscell(temp)
10  y=any(cellfun(@(x)strcmp(x,'module'),temp));
11  else
12  y=strcmp(temp,'module');
13  end
14 
15  end
16 end
function robolog(in msg, in varargin)
This function allows the user to print log messages in a standard way.
Superclass: collection/sequence of unit.
Definition: module.m:64