-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCalculatorServerModel.java
More file actions
33 lines (26 loc) · 1.33 KB
/
CalculatorServerModel.java
File metadata and controls
33 lines (26 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* <p><b>Title: CalculatorServerModel () </b></p>
* <p><b>Description:</b></p>
* <p><b>Copyright (c) 2003 Tom Kacperski & Pavel Lyssenko. All rights reserved. </b></p>
* A server side interface for calculating circuit data. The methods here are required for remote invocation
* through RMI. Data is passed to server then a two dimensional array is returned to the client with
* results.
* <p><b>Company: NONE </b></p>
* @version Project C (V1.0)
* @author Tom Kacperski
*/
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface CalculatorServerModel extends Remote {
// Get the entire data block from this class.
public double[][] getDataResults () throws RemoteException;
// Sets RTD data.
public void initRTDData (double bridgeVoltage, int gageSelection, double rtdAlpha, double tempLow,
double tempHigh, int plotPoints, double resistance) throws RemoteException;
// Sets Strain Gage data.
public void initStrainGageData (double resistance, int w, double ampOut, double bVI, int gs, int ss, int p) throws RemoteException;
// REMOTE or LOCAL calculate call.
public void calculate (int circuit) throws RemoteException;
public double getFeedBackResistor () throws RemoteException;
public double getCircuitPower () throws RemoteException;
}