Aggiunto esercizio su stab-skeleton. Creato esercizio quindi con dns resolver, client -> stub -> skeleton -> server

This commit is contained in:
2014-10-26 17:46:57 +01:00
parent 8db1dfaf28
commit 86f7477fca
13 changed files with 718 additions and 4 deletions

View File

@@ -0,0 +1,43 @@
package stub_skeleton;
/**
* Created with xgiovio.macbookair.
* User: xgiovio
* Date: 26/10/14
* Time: 15:14
*/
public class Impiegato_Server_Object implements Impiegato{
public Impiegato_Server_Object(String in_nome, String in_cognome, double in_aumento){
nome = in_nome;
cognome = in_cognome;
stipendio = in_aumento;
}
@Override
public String getNome() {
return nome;
}
@Override
public String getCognome() {
return cognome;
}
@Override
public double getStipendio() {
return stipendio;
}
@Override
public double aumentaStipendio(double in_aumento) {
stipendio+=in_aumento;
return stipendio;
}
private String nome;
private String cognome;
private double stipendio;
}