-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConverter.java
More file actions
26 lines (21 loc) · 943 Bytes
/
Converter.java
File metadata and controls
26 lines (21 loc) · 943 Bytes
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
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Converter extends Remote {
// Temperatura
double celsiusToFahrenheit(double celsius) throws RemoteException;
double fahrenheitToCelsius(double fahrenheit) throws RemoteException;
// Distância
double kmToMiles(double km) throws RemoteException;
double milesToKm(double miles) throws RemoteException;
double metersToCentimeters(double meters) throws RemoteException;
double centimetersToMeters(double cm) throws RemoteException;
// Peso
double kgToLbs(double kg) throws RemoteException;
double lbsToKg(double lbs) throws RemoteException;
// Tempo
double hoursToMinutes(double hours) throws RemoteException;
double minutesToHours(double minutes) throws RemoteException;
// Altura
double metersToFeet(double meters) throws RemoteException;
double feetToMeters(double feet) throws RemoteException;
}