-
Notifications
You must be signed in to change notification settings - Fork 184
Refactoring - Update class setAccess and getAccess #838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
kmruehl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @akeeste, this looks good, but please put it into my fork so we have the last refactoring revisions in one place.
kmruehl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
|
@akeeste it looks like there are some conflicts with dev now, please resolve. I'm also going to resolve them on my branch |
|
@akeeste tests are failing due to Error occurred while setting up or tearing down regressionTest.
As a result, all regressionTest tests failed and did not run to completion.
---------
Error ID:
---------
'MATLAB:noSuchMethodOrField'
--------------
Error Details:
--------------
Unrecognized method, property, or field 'checkinputs' for class 'waveClass'.
Error in initializeWecSim (line 93)
waves.checkinputs();
Error in run (line 91)
evalin('caller', strcat(script, ';'));
Error in wecSim (line 44)
run('initializeWecSim');
Error in runLoadRegular (line 25)
wecSim; % Run Simulation |
|
@akeeste I think it's a case issue, |
kmruehl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akeeste I'm going to go ahead and merge this into dev
This PR addresses some refactoring items, namely updates the
setAccessandgetAccessof various class properties based on how they are used. SomesetX()methods are added so that properties can be private-public while still set ininitializeWecSimnumberproperties private-public.setNumber()methods so thatnumberproperties can still be set ininitializeWecSimmooring.orientationas it is not used anywhere. Note, this is not used in the same way as the other classeswaves.typeto private-public.typeNumis set privately and only in the class constructor sotypemust be set through the constructor as wellbody.geometry, body.h5Fileto private-public and update the docstring so that the API pulls the full descriptionbody.dofCoupled, body.totalto private-public and defined in abody.setup()methodbody.hydroTotal, not usedbody.massCalcMethodto private-public and removed frominitializeWecSimline 149. This should not be called theresimu.cicTime, simu.cicLength, simu.caseFile, simu.date, simu.gitCommit, simu.maxIt, simu.outputDir, simu.wsVersionto private-public, not used outside of the simulationClasssimu.inputFile, simu.logFile, not used