Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.69 KB

README.md

File metadata and controls

48 lines (28 loc) · 1.69 KB

🌀 RMI Bhaskara

Lucas Rennó Kallás

This code was made to Distributed Systems Subject.

executing

The RMI was made in Java with NetBeans 8.2. To test it I created a method that receives variables a, b and c from Client and use Bhaskara Formula to get the results x' and x'' and send them in a ArrayList as a response.

⭐ Code

💢 ApplicationServer.java

This is the server, it will wait for a request and send a response based on methods implemented at BhaskaraServant.java

Server

💢 BhaskaraServant.java

There are the implemented functions declared at BhaskaraService.java

Bhaskara method is implemented on it:

Bhaskara

❗ Implemented Methods
  1. echo(String input), this function receives input and returns "From server: " + input
  2. bhaskara(float a, float b, float c), this function receives a, b and c and returns an ArrayList that contains x' and x'' found with Bhaskara Formula

❓ Bhaskara Formula:

Bhaskara Formula

💢 BhaskaraService.java

This is the interface that shows to the Client the methods which it can call. And the methods that will be implemented at BhaskaraServant.java.

Service

💢 Client.java

This is the client, it can call the functions that are in BhaskaraService.java and the server will return a response.

Client

👊 Want to use it?

  • Make a fork
  • I recommend to download NetBeans to use 👀

Enjoy it, 😃