Commit inicial

This commit is contained in:
2022-09-18 14:09:37 -04:00
commit 88c9d4a901
18 changed files with 258 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package interfaces;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface CandidatoInterface extends Remote {
public String getNome() throws RemoteException;
public void setNome(String nome) throws RemoteException;
public int getNumero() throws RemoteException;
public void setNumero(int numero) throws RemoteException;
}

View File

@@ -0,0 +1,7 @@
package interfaces;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface IsEvenInterface extends Remote {
public boolean is_even(int x) throws RemoteException;
}

View File

@@ -0,0 +1,14 @@
package interfaces;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;
import implementacoes.CandidatoImpl;
public interface VotacaoInterface extends Remote {
public List<CandidatoImpl> listarCandidatos() throws RemoteException;
public int salvarVoto(int posicao) throws RemoteException;
public int buscarCandidato(String numero) throws RemoteException;
public void apuracao() throws RemoteException;
}