summaryrefslogtreecommitdiff
path: root/RTJava/examples/tank/Refiller.java
blob: 1ceea49585488f86f1e05338a18845e261fbb61b (plain)
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
package tank;

/**
 * This class represent an activity that refills periodically
 * the bucket. In this application it is assumed that this activity
 * should be carried periodically.
 */
public class Refiller implements java.lang.Runnable {

    /**
     * Constructs a refiller that refills the tank every
     * given amount of time.
     *
     * @param period The period of time at which the refill should
     *               occur.
     */
    public Refiller(int period) {
        this.period = period;
    }

    public Refiller(int period) {
        this.period = period;
    }

    protected long period;
}