Interaction010.java

Package: coupling/interaction/
File: Interaction010.java

  1. package coupling.interaction;
  2.  
  3. import coupling.Experiment;
  4. import coupling.Result;
  5.  
  6. /**
  7.  * An interaction010 is the association of an experience with a result.
  8.  */
  9. public class Interaction010 implements Interaction{
  10.  
  11. private String label;
  12. protected Experiment experience;
  13. protected Result result;
  14.  
  15. public Interaction010(String label){
  16. this.label = label;
  17. }
  18.  
  19. public String getLabel(){
  20. return this.label;
  21. }
  22.  
  23. public Experiment getExperience() {
  24. return experience;
  25. }
  26.  
  27. public void setExperience(Experiment experience) {
  28. this.experience = experience;
  29. }
  30.  
  31. public Result getResult() {
  32. return result;
  33. }
  34.  
  35. public void setResult(Result result) {
  36. this.result = result;
  37. }
  38.  
  39. public String toString(){
  40. return this.experience.getLabel() + this.result.getLabel();
  41. }
  42.  
  43. }
  44.  

See public discussions about this page or start a new discussion by clicking on the Google+ Share button. Please type the #IDEALMOOCInteraction010 hashtag in your post: