File size: 860 Bytes
2795186
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package paysim;

public class CurrentStepContainer {
	
	private long currentStep = 0;
	private long counter = 0;
	private long nrReduced = 0;
	
	public long getNrReduced() {
		return nrReduced;
	}
	public void setNrReduced(long nrReduced) {
		this.nrReduced = nrReduced;
	}
	public long getCurrentStep() {
		return currentStep;
	}
	public void setCurrentStep(long currentStep) {
		this.currentStep = currentStep;
	}
	public long getCounter() {
		return counter;
	}
	public void setCounter(long counter) {
		this.counter = counter;
	}
	public boolean canBeReduced(){
		if(nrReduced < (counter)){
			return true;
		}
		return false;
	}
	
	
	@Override
	public String toString() {
		return "CurrentStepContainer [currentStep=" + currentStep
				+ ", counter=" + counter + ", nrReduced=" + nrReduced + "]";
	}
	public void increment(){
		this.nrReduced++;
	}
	
	
}