xxsimGetImplementations - Request the implementations of a particular submodel. Syntax: retval = xxsimGetImplementations(submodel). Inputs: name = the hierarchical name of the submodel for the implementations that should be requested. Outputs: result = returns a struct with activeImplementation and implementations keys. Examples: implementations = xxsimGetImplementations('Submodel1'); See also: xxsimSetImplementations Author: Controllab Products B.V. email: info@controllab.nl Website: http://www.controllab.nl November 2015
0001 function retval = xxsimGetImplementations(submodel) 0002 % xxsimGetImplementations - Request the implementations of a particular submodel. 0003 % 0004 % Syntax: 0005 % retval = xxsimGetImplementations(submodel). 0006 % 0007 % Inputs: 0008 % name = the hierarchical name of the submodel for the implementations that should be requested. 0009 % 0010 % Outputs: 0011 % result = returns a struct with activeImplementation and implementations keys. 0012 % 0013 % Examples: 0014 % implementations = xxsimGetImplementations('Submodel1'); 0015 % 0016 % See also: xxsimSetImplementations 0017 % 0018 % Author: Controllab Products B.V. 0019 % email: info@controllab.nl 0020 % Website: http://www.controllab.nl 0021 % November 2015 0022 0023 %------------- BEGIN CODE -------------- 0024 0025 % check input arguments 0026 if(nargin<1) 0027 error('Too little input arguments were specified. Submodel name expected.'); 0028 end; 0029 if(nargin>1) 0030 error('Too many input arguments were specified. Submodel name expected.'); 0031 end; 0032 if ~ischar(submodel) 0033 error('name argument is not a string'); 0034 end; 0035 0036 % make the actual call to 20-sim 0037 retval = xrlinvoke('xxsim.model.getImplementations', struct('name', submodel)); 0038 end 0039 %------------- END CODE --------------