git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@13356 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
michelou 2007-11-27 12:31:59 +00:00
parent c9ac87567e
commit cb15c45f74
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ case class AuctionConcluded(seller: Actor, client: Actor) // auction concluded
case object AuctionFailed extends AuctionReply // failed with no bids
case object AuctionOver extends AuctionReply // bidding is closed
class Auction(seller: Actor, minBid: int, closing: Date) extends Actor {
class AuctionActor(seller: Actor, minBid: int, closing: Date) extends Actor {
val timeToShutdown = 3000 // msec
val bidIncrement = 10
@ -74,7 +74,7 @@ object auction {
val closing = new Date(new Date().getTime() + 4000)
val seller = Actor.actor { }
val auction = new Auction(seller, minBid, closing)
val auction = new AuctionActor(seller, minBid, closing)
def client(i: int, increment: int, top: int) = new Actor {
val name = "Client " + i