Package: coupling/
File: Experiment050.java
package coupling; import java.util.List; import java.util.ArrayList; import coupling.interaction.Interaction; /** * An Experiment050 is an Experiment040 that has a list of enactedInteractions. * Enacted Interactions are interactions that may end up being enacted * instead of the intended interaction when performing this experiment. */ public class Experiment050 extends Experiment040 { private List<Interaction> enactedInteractions = new ArrayList<Interaction>(); super(label); } public void addEnactedInteraction(Interaction enactedInteraction){ if (!this.enactedInteractions.contains(enactedInteraction)) this.enactedInteractions.add(enactedInteraction); } public List<Interaction> getEnactedInteractions(){ return this.enactedInteractions; } }
See public discussions about this page or start a new discussion by clicking on the Google+ Share button. Please type the #IDEALMOOCExperiment050 hashtag in your post: