diff --git a/ShoulderCase/@RotatorCuff/RotatorCuff.m b/ShoulderCase/@RotatorCuff/RotatorCuff.m index f4298d0..daa5b3c 100644 --- a/ShoulderCase/@RotatorCuff/RotatorCuff.m +++ b/ShoulderCase/@RotatorCuff/RotatorCuff.m @@ -1,45 +1,54 @@ classdef RotatorCuff < handle properties SC SS IS TM anteroPosteriorImbalance = nan; shoulder; end methods function obj = RotatorCuff(shoulder) obj.shoulder = shoulder; obj.SC = Muscle(obj, "SC"); obj.SS = Muscle(obj, "SS"); obj.IS = Muscle(obj, "IS"); obj.TM = Muscle(obj, "TM"); [~, ~] = mkdir(obj.dataPath); [~, ~] = mkdir(obj.dataSlicesPath); end function output = dataPath(obj) output = fullfile(obj.shoulder.dataPath, "muscles"); end function output = dataSlicesPath(obj) output = fullfile(obj.dataPath, "oblique_slices"); end function output = summary(obj) summary = [... getTabulatedProperties(obj.SC);... getTabulatedProperties(obj.SS);... getTabulatedProperties(obj.IS);... getTabulatedProperties(obj.TM)... ]; output = summary; end + + function measureSecond(obj) + % Call methods that can be run after measureFirst() methods has been run + % by all ShoulderCase objects. + success = Logger.timeLogExecution(... + "Rotator cuff antero-posterior imbalance: ",... + @(obj) obj.measureAnteroPosteriorImbalance, obj); + output = success; + end end end \ No newline at end of file