Newer
Older
AlgebraicDataflowArchitectureModel / AlgebraicDataflowArchitectureModel / src / experiment / pull / Payment.java
yoichiro on 2 May 2020 327 bytes コード修正
package experiment.pull;

public class Payment {
	private History history;
	private int payment;
	public Payment(History history) {
		this.history = history;
	}
	public void purchase(int payment) {
		this.payment = payment;
		history.updatePayment(payment);
	}
	public int getPayment() {
		return payment;
	}
}