这是一个CS结构的分布式运算的源码,编写精巧,便于学习.

源代码在线查看: rmiproblemsetimpl.java

软件大小: 3 K
上传用户: jiajuncai
关键词: CS结构 分布式 运算 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				import java.rmi.*;
				import java.rmi.server.UnicastRemoteObject;
				
				public class RMIProblemSetImpl
				    extends java.rmi.server.UnicastRemoteObject
				    implements RMIProblemSet {
				
				  protected double value;
				  protected double solution;
				  
				  public RMIProblemSetImpl() throws RemoteException {
				    value = 0.0;
				    solution = 0.0;
				  }
				  
				  public double getValue() throws RemoteException {
				    return value;
				  }
				  
				  public double getSolution() throws RemoteException {
				    return solution;
				  }
				  
				  public void setValue(double v) throws RemoteException {
				    value = v;
				  }
				  
				  public void setSolution(double s) throws RemoteException {
				    solution = s;
				  }
				}			

相关资源