Interaction030.java

Package: coupling/interaction/
File: Interaction030.java

  1. package coupling.interaction;
  2.  
  3. /**
  4.  * An Interaction030 is an Interaction020 that can be primitive or composite
  5.  * A composite interaction has a preInteraction and a postInteraction.
  6.  */
  7. public class Interaction030 extends Interaction020{
  8.  
  9. private Interaction030 preInteraction;
  10. private Interaction030 postInteraction;
  11.  
  12. public Interaction030(String label){
  13. super(label);
  14. }
  15.  
  16. public Interaction030 getPreInteraction() {
  17. return preInteraction;
  18. }
  19.  
  20. public void setPreInteraction(Interaction030 preInteraction) {
  21. this.preInteraction = preInteraction;
  22. }
  23.  
  24. public Interaction030 getPostInteraction() {
  25. return (Interaction030)postInteraction;
  26. }
  27.  
  28. public void setPostInteraction(Interaction030 postInteraction) {
  29. this.postInteraction = postInteraction;
  30. }
  31.  
  32. public boolean isPrimitive(){
  33. return this.getPreInteraction() == null;
  34. }
  35. }
  36.  

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