diff --git a/@Cell/upgrade.m b/@Cell/upgrade.m new file mode 100644 index 0000000000000000000000000000000000000000..6e93e21ae361228d890f4ffe1c55f5b20536c7e0 --- /dev/null +++ b/@Cell/upgrade.m @@ -0,0 +1,18 @@ +%% upgrade +% Preforms any necessary upgrades to the TET to comply with the latest version. +% inputs: +% object - Cell object +% outputs: +% none +% Author: Matthew Dawson +% Organization: McMaster Centre for Software Certification +function upgrade( object ) +if iscell(object.cond_text) + object.cond_text = object.cond_text{1}; +end + +for i=1:size(object.subgrid,2) + object.subgrid(i).upgrade; +end +end + diff --git a/@Data/upgrade.m b/@Data/upgrade.m new file mode 100644 index 0000000000000000000000000000000000000000..97dd07a633ef2ce3d166aa730b9ca2ed53572212 --- /dev/null +++ b/@Data/upgrade.m @@ -0,0 +1,15 @@ +%% upgrade +% Preforms any necessary upgrades to the TET to comply with the latest version. +% inputs: +% object - Data object +% outputs: +% none +% Author: Matthew Dawson +% Organization: McMaster Centre for Software Certification +function upgrade( object ) +object.Grid0.upgrade + +object.Grid1.upgrade +object.Grid2.upgrade +end + diff --git a/@Grid/upgrade.m b/@Grid/upgrade.m new file mode 100644 index 0000000000000000000000000000000000000000..55aa1a7b3df8de17573a7b4d4defb98835e37f45 --- /dev/null +++ b/@Grid/upgrade.m @@ -0,0 +1,16 @@ +%% upgrade +% Preforms any necessary upgrades to the TET to comply with the latest version. +% inputs: +% object - Grid object +% outputs: +% none +% Author: Matthew Dawson +% Organization: McMaster Centre for Software Certification +function upgrade( object ) + +for i=1:size(object.cells, 2) + object.cells(i).upgrade +end + +end + diff --git a/@RCell/upgrade.m b/@RCell/upgrade.m new file mode 100644 index 0000000000000000000000000000000000000000..4dfaf38556a9347d13d955473327d4c8e5b28898 --- /dev/null +++ b/@RCell/upgrade.m @@ -0,0 +1,14 @@ +%% upgrade +% Preforms any necessary upgrades to the TET to comply with the latest version. +% inputs: +% object - RCell object +% outputs: +% none +% Author: Matthew Dawson +% Organization: McMaster Centre for Software Certification +function upgrade( object ) + if iscell(object.result_text) + object.result_text = object.result_text{1}; + end +end + diff --git a/@RGrid/upgrade.m b/@RGrid/upgrade.m new file mode 100644 index 0000000000000000000000000000000000000000..19db683724a030b043b1492915116e2d19cff0f5 --- /dev/null +++ b/@RGrid/upgrade.m @@ -0,0 +1,14 @@ +%% upgrade +% Preforms any necessary upgrades to the TET to comply with the latest version. +% inputs: +% object - RGrid object +% outputs: +% none +% Author: Matthew Dawson +% Organization: McMaster Centre for Software Certification +function upgrade( object ) +for i = 1:size(object.Cells, 2) + object.Cells(i).upgrade; +end +end + diff --git a/TTdiag.m b/TTdiag.m index 5b8b91517030c2c99fbba1ad8f3f1e30c2985613..10c27e6a2be4791fe82e053df2fc7d0cf409e38e 100644 --- a/TTdiag.m +++ b/TTdiag.m @@ -123,6 +123,8 @@ else figure(data.fig); return end + else + data.upgrade end end