|
[Sponsors] |
November 22, 2018, 08:56 |
Change deprecated class in a macro
|
#1 |
Member
Join Date: Jan 2018
Posts: 34
Rep Power: 8 |
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"); } 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, |
|
November 25, 2018, 21:05 |
|
#2 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
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.
|
|
Tags |
deprecated api, java macro, macro java, starccm+, starccm+ macro |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
p_rgh initial residual no change with different settings | manuc | OpenFOAM Running, Solving & CFD | 3 | June 26, 2018 16:53 |
Run time Selection Mechanism - Some help required to understand | jaswi | OpenFOAM Programming & Development | 3 | October 29, 2015 14:42 |
thobois class engineTopoChangerMesh error | Peter_600 | OpenFOAM | 4 | August 2, 2014 10:52 |
swirlinjector | az1362f | OpenFOAM Running, Solving & CFD | 59 | June 12, 2012 23:42 |
STAR-CCM+ Java class | Claudene | Siemens | 1 | July 17, 2008 06:49 |