Skip to content

Commit

Permalink
Implemented Barmaid
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarrasch committed Feb 18, 2011
1 parent c80ab34 commit 1396899
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 217 deletions.
19 changes: 18 additions & 1 deletion Barmaid.jr
Expand Up @@ -3,6 +3,23 @@ import java.util.*;
import java.util.ArrayList;


public class Barmaid {
public class Barmaid extends Mixologist {

protected boolean shouldGoHome()
{
return knowsItsClosed();
}

protected void oneIteration()
{
inni void tellLastCallOrClosing()
{
numCalls++;
}
[] boolean Global.orderingChannel(Beverage beverage)
{
return mixDrink(beverage);
}
}

}
2 changes: 1 addition & 1 deletion Person.jr
Expand Up @@ -4,7 +4,7 @@ import java.util.*;
public abstract class Person {

private Door door;
private int numCalls;
protected int numCalls;
private String name;

public op void tellLastCallOrClosing();
Expand Down

0 comments on commit 1396899

Please sign in to comment.