001package edu.pdx.cs410J.rmi;
002
003import java.rmi.*;
004
005/**
006 * This remote interface provides methods for solving a system of
007 * equations on a remote machine.
008 */
009public interface EquationSolver extends Remote {
010
011  /**
012   * Solves a system of <code>n</code> equations of the form <code>Ax
013   * = b</code> where <code>A</code> is an <code>n x n</code> matrix.
014   *
015   * @throws IllegalArgumentException
016   *         The number of rows and columns in the matrix are not the
017   *         same 
018   * @throws RemoteException
019   *         Something went wrong while communicating with the server
020   */
021  public double[] solve(double[][] matrix, double[] constants) 
022    throws RemoteException;
023
024}