comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » passing parameter from IDL to Java
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
passing parameter from IDL to Java [message #65500] Thu, 05 March 2009 13:35
None[1] is currently offline  None[1]
Messages: 13
Registered: August 2007
Junior Member
Hi,
I am new to IDL-Java Bridge. I was wondering whether there is a way to
set the variables in Java from IDL. For example., setNum(number) from
an IDL program to a Java program which implements the function setNum
().

Something like below....

NumGetset.java

public class NumGetset {
public int num1,num2;
public void setNum(int num1, int num2)
{
this.num1 = num1;
this.num2 = num2;
}
public int getNum1()
{
return this.num1;
}
public int getNum2()
{
return this.num2;
}

}

pro NumGetsetDemo

jo = OBJ_NEW('IDLJavaObject$NUMGETSET', 'NumGetset')

;How to set the variables here? Is it possible to do that?
;setNum(100,200)

print, 'Num1 = ', jo -> getNum1()
print, 'Num2 = ', jo -> getNum2()
OBJ_DESTROY, jo

end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLgrAxis question.
Next Topic: netCDF Read/Write Variable

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:23:01 PDT 2025

Total time taken to generate the page: 0.00350 seconds