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

Java and interface

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

Like Tree1Likes
  • 1 Post By me3840

Reply
 
LinkBack Thread Tools Display Modes
Old   January 31, 2014, 11:55
Default Java and interface
  #1
Member
 
hayder
Join Date: Jan 2012
Posts: 32
Rep Power: 5
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, 01:53
Default
  #2
Senior Member
 
Join Date: Nov 2010
Posts: 418
Rep Power: 8
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

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 6 August 3, 2012 05:26
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 18:04.