Created
June 12, 2012 16:12
-
-
Save ampc/2918454 to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Doente { | |
String nome; // nome do doente | |
int t_chegada; // hora de chegada (em minutos) entre 0 e 1440 | |
int t_atend; // tempo que demorara o atendimento (em minutos) | |
int t_entrada; // tempo em que comecou a ser atendido | |
// construtor | |
Doente(String n,int tc, int ta) { | |
nome = n; | |
t_chegada = tc; | |
t_atend = ta; | |
t_entrada = 0; | |
} | |
// actualiza tempo de entrada (em que foi atendido) | |
public void actualizaTempoEntrada(int te) { | |
t_entrada= te; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment