Basic HTML version of Foils prepared Aug 14 1997

Foil 52 Example:Object Implementation

From JavaBeans CORBA ComponentWare UC Web applications Certificate -- Aug 11,14 97. by Geoffrey C. Fox, Wojtek Furmanski


package Counter;
public class CountImpl extends _sk_Count implements Count {
private int sum;
CountImpl(String name) { // Count object constructor
super(name); sum = 0;
System.out.println("Count Object Created!");
}
public int sum() throws CORBA.Exception { // accessor method: getSum
return sum;
}
public void sum(int val) throws CORBA.Exception { // accessor method: setSum
sum = val;
}
public int increment() throws CORBA.Exception { // increment method
sum++; return sum:
}
}
Note: This code is created automatically by
IDL-&#062Java pre-compiler from the IDL spec



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Jan 8 1998