CFD Online Logo CFD Online URL
Home > Forums > STAR-CCM+

Java and interface

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By me3840

LinkBack Thread Tools Display Modes
Old   January 31, 2014, 11:55
Default Java and interface
Join Date: Jan 2012
Posts: 32
Rep Power: 7
hyderkhan74 is on a distinguished road

I am new in Java but i need to write code to change the interface type in depend on the type of another interface by using IF statment, So for example If interface one be internal interface, interface two will be baffle type.

Thanks in advance.
hyderkhan74 is offline   Reply With Quote

Old   February 4, 2014, 01:53
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 904
Rep Power: 13
me3840 is on a distinguished road
Can't recall the syntax offhand, but you will do something like:

if(interface1.type instanceof InternalInterface) then {
iterface2.setType baffleInterface
hyderkhan74 likes this.
me3840 is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
I developed an FEM toolkit in Java: FuturEye nkliuyueming Main CFD Forum 7 January 29, 2016 14:28
JAVA and an exersise Alej Main CFD Forum 1 July 17, 2006 09:25
java vs c++ zxaar Main CFD Forum 10 December 3, 2004 03:05
Graphical user interface prasat Main CFD Forum 10 January 16, 2003 09:39

All times are GMT -4. The time now is 02:11.