Skip to content
Snippets Groups Projects
Commit 07046443 authored by Federico Felici's avatar Federico Felici
Browse files

SCD to generic SCDDS class

parent e33ab3b9
No related branches found
No related tags found
No related merge requests found
classdef SCD
% main interface class for interacting with SCD expcodes
classdef SCDDS
% main interface class for interacting with SCDDS expcodes
%
% H = SCD.load(expcode); % loads the obj for a desired expcode
% H = SCD.init(expcode); % loads and initialize
% H = SCD.prepforcompile(expcode); % loads, initialize, and setup (ready for compilation)
% H = SCD.prepforsim(expcode,shot); % does load, init, setup, actualize
% (Static) methods:
% H = .load(expcode); % loads the obj for a desired expcode
% H = .init(expcode); % loads and initialize
% H = .prepforcompile(expcode); % loads, initialize, and setup (ready for compilation)
% H = .prepforsim(expcode,shot); % does load, init, setup, actualize
%
% C = SCD.getexpcodecontainer; % get expcode container
% C = .getexpcodecontainer; % get expcode container
methods (Static)
function H=load(expcode)
% Creating the experimental code container class
SCDexps = SCD.getexpcodecontainer();
H = SCDexps.getbymaincode(expcode);
expcodes = SCDDS.getexpcodecontainer();
H = expcodes.getbymaincode(expcode);
SCDconf_setConf('SIM'); % set conf for simulation
end
function H=init(expcode)
H=SCD.load(expcode);
H=SCDDS.load(expcode);
H.init;
end
function H=prepforcompile(expcode)
H = SCD.load(expcode);
H = SCDDS.load(expcode);
H.init;
H.setup;
end
function H=prepforsim(expcode,shot)
fprintf('\n### EXPCODE LOAD PHASE ###\n');
H=SCD.load(expcode);
H=SCDDS.load(expcode);
fprintf('\n### EXPCODE INIT PHASE ###\n');
H.init;
fprintf('\n### EXPCODE SETUP PHASE ###\n');
......@@ -43,7 +44,7 @@ classdef SCD
end
function list()
SCD.help;
SCDDS.help;
end
function clean_dd()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment