diff --git a/AlgebraicDataflowArchitectureModel/src/experiment/push/History.java b/AlgebraicDataflowArchitectureModel/src/experiment/push/History.java new file mode 100644 index 0000000..0270b05 --- /dev/null +++ b/AlgebraicDataflowArchitectureModel/src/experiment/push/History.java @@ -0,0 +1,18 @@ +package experiment.push; + +import java.util.ArrayList; + +public class History { + private Total total; + private ArrayList history = new ArrayList(); + public void updatePayment(int payment) { + history.add(payment); + total.update(history); + } + public History(Total total) { + this.total = total; + } + public ArrayList getHistory() { + return history; + } +}