I am currently looking at the Gait3D example, from the repository (v6) and
noticed that in the study, the InverseDynamicAnalysis folder is modified
(section in gray):
AnyBodyStudy Study = {
AnyFolder &Model = .Model;
RecruitmentSolver = MinMaxNRSimplex;
nStep=100;
Gravity = {0.0000, 0.00000,-9.81};
tEnd=1.25;
tStart=0.01;
InverseDynamicAnalysis={
//Folder which contains a a comparison of measured EMG with calculated
muscle activity
#include "EMGComparison.any"
};
};
I was quite surprised to see such a declaration considering this section
(InverseDynamicAnalysis) is a denied-access member of AnyBodyStudy (see Ref
Manual). Should I understand that ADDING new variable/declaration, in a
fashion similar to overloading (modification after initial declaration) is
acceptable? Considering I did not see it stated explicitly in the
documentation (but can guess so from the LoadingProcess), can it be
considered a standard feature that will be kept in future versions? Should
we consider the denied-access member a restriction to MODIFICATION of
current values but not a restriction to the ADDITION of new values?
That is a rather insightful question and one we had to ponder a
little bit. Hence the delay in answering. I can understand that you
are puzzled about the semantics of allowing people to add stuff to a
denied access folder.
The meaning of the denied access when applied to a folder is that
the predefined members of the folder are protected. However, you are
allowed to add your own variables anywhere you like in the data
structure, and these home-made variables become fully accessible.
Thanks, so I will use that definition of Denied-Access in my future
development strategies in order to improve backward (or should I say
forward) compatibility.
That is a rather insightful question and one we had to ponder a
little bit. Hence the delay in answering. I can understand that you
are puzzled about the semantics of allowing people to add stuff to a
denied access folder.
The meaning of the denied access when applied to a folder is that
the predefined members of the folder are protected. However, you are
allowed to add your own variables anywhere you like in the data
structure, and these home-made variables become fully accessible.