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

Java and interface

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By me3840

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2014, 10:55
Default Java and interface
  #1
Member
 
hayder
Join Date: Jan 2012
Posts: 32
Rep Power: 14
hyderkhan74 is on a distinguished road
Hi

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, 00:53
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
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

Reply


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
I developed an FEM toolkit in Java: FuturEye nkliuyueming Main CFD Forum 7 January 29, 2016 13: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 02:05
Graphical user interface prasat Main CFD Forum 10 January 16, 2003 08:39


All times are GMT -4. The time now is 06:55.