Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. package br.poli.ecomp.rcpsp;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. public class Atividade {
  6.  
  7. ArrayList<Atividade> precedentes;
  8. private String nome;
  9. private int recursos;
  10. private int tempo;
  11. private int id;
  12.  
  13. public Atividade(int id,
  14. String nome,
  15. int recursos,
  16. int tempo,
  17. ArrayList<Atividade> precedentes){
  18. this.id = id;
  19. this.nome = nome;
  20. this.recursos = recursos;
  21. this.tempo = tempo;
  22. this.precedentes = precedentes;
  23. }
  24.  
  25. public ArrayList<Atividade> getPrecedentes() {
  26. return precedentes;
  27. }
  28.  
  29. public void setPrecedentes(ArrayList<Atividade> precedentes) {
  30. this.precedentes = precedentes;
  31. }
  32.  
  33. public String getNome() {
  34. return nome;
  35. }
  36.  
  37. public void setNome(String nome) {
  38. this.nome = nome;
  39. }
  40.  
  41. public int getRecursos() {
  42. return recursos;
  43. }
  44.  
  45. public void setRecursos(int recursos) {
  46. this.recursos = recursos;
  47. }
  48.  
  49. public int getTempo() {
  50. return tempo;
  51. }
  52.  
  53. public void setTempo(int tempo) {
  54. this.tempo = tempo;
  55. }
  56.  
  57. public int getId() {
  58. return id;
  59. }
  60.  
  61. public void setId(int id) {
  62. this.id = id;
  63. }
  64.  
  65.  
  66.  
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement