projects
/
fleet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
initial commit
[fleet.git]
/
src
/
edu
/
berkeley
/
fleet
/
OneProducerShip.java
1
package edu.berkeley.fleet;
2
3
import java.util.*;
4
import java.io.*;
5
6
public class OneProducerShip extends Ship {
7
8
Outbox out = new Outbox("out");
9
10
public OneProducerShip(Fleet fleet, String name) {
11
super(fleet, name);
12
}
13
14
public void service() {
15
if (out.empty())
16
out.add(1);
17
}
18
19
}