Commit inicial
This commit is contained in:
11
src/interfaces/CandidatoInterface.java
Normal file
11
src/interfaces/CandidatoInterface.java
Normal 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;
|
||||
}
|
||||
7
src/interfaces/IsEvenInterface.java
Normal file
7
src/interfaces/IsEvenInterface.java
Normal 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;
|
||||
}
|
||||
14
src/interfaces/VotacaoInterface.java
Normal file
14
src/interfaces/VotacaoInterface.java
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user