CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Change deprecated class in a macro (https://www.cfd-online.com/Forums/star-ccm/211946-change-deprecated-class-macro.html)

UchihaMadara November 22, 2018 07:56

Change deprecated class in a macro
 
Hello,

I am running the parseSTARCCMModel.java macro that comes with heeds, and uses the following in one of its line


Code:

else {
        DesignParameter designParameter = (DesignParameter) obj;
        scalarDesignParameterStream.append("\t" + designParameter.getPresentationName() + "=" + designParameter.getValue());
        scalarDesignParameterStream.append(" <class=" + designParameter.getClass().getSimpleName() + ">\n");
                                        }

however the .getValue() is deprecated and it says the following in the starccm java api help page.



Deprecated. As of release 13.02. Use "getQuantity::getValue" method on the concrete class instead.




So, does anyone know what should be done in order to change the getValue() method?

Also a direction for how to refer the java api would be much helpful for future reference.


Kind thanks,

me3840 November 25, 2018 20:05

If you search the Steve portal there are articles on how to connect your IDE to the Java libraries that come with STAR. They will help you replace what you need.


All times are GMT -4. The time now is 09:13.