Newer
Older
AlgebraicDataflowArchitectureModel / AlgebraicDataflowArchitectureModel / src / experiment / push / Total.java
yoichiro on 2 May 2020 264 bytes push型の実験用クラスを作成
package experiment.push;

import java.util.ArrayList;

public class Total {
	private int total;
	public void updateHistory(ArrayList<Integer> history) {
		total = history.stream().mapToInt(x->x).sum();
	}
	public int getTotal() {
		return total;
	}
}