CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Change deprecated class in a macro

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2018, 08:56
Default Change deprecated class in a macro
  #1
Member
 
Join Date: Jan 2018
Posts: 34
Rep Power: 8
UchihaMadara is on a distinguished road
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,
UchihaMadara is offline   Reply With Quote

Old   November 25, 2018, 21:05
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25
me3840 is on a distinguished road
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.
me3840 is offline   Reply With Quote

Reply

Tags
deprecated api, java macro, macro java, starccm+, starccm+ macro


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 22:43.