| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cuny.cat.market.AuctioneerPolicy
edu.cuny.cat.market.accepting.ShoutAcceptingPolicy
edu.cuny.cat.market.accepting.OnlyNewShoutDecidingAcceptingPolicy
public abstract class OnlyNewShoutDecidingAcceptingPolicy
The class of accepting policy that makes decision based on the new shout only, having nothing to do with the old (standing) shout.
| Field Summary | 
|---|
| Fields inherited from class edu.cuny.cat.market.accepting.ShoutAcceptingPolicy | 
|---|
P_DEF_BASE | 
| Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy | 
|---|
auctioneer | 
| Constructor Summary | |
|---|---|
OnlyNewShoutDecidingAcceptingPolicy()
 | 
|
| Method Summary | |
|---|---|
abstract  void | 
check(Shout shout)
checks whether a new shout is acceptable or not.  | 
 void | 
check(Shout oldShout,
      Shout newShout)
calls check(Shout) and checks with newShout only. | 
| Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy | 
|---|
eventOccurred, getAuctioneer, initialize, reset, setAuctioneer, setup, toString | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public OnlyNewShoutDecidingAcceptingPolicy()
| Method Detail | 
|---|
public abstract void check(Shout shout)
                    throws IllegalShoutException
shout - the shout being checked.
IllegalShoutException
public void check(Shout oldShout,
                  Shout newShout)
           throws IllegalShoutException
check(Shout) and checks with newShout only.
check in class ShoutAcceptingPolicyoldShout - the shout to be replaced; if null, no shout is replaced.newShout - the new shout to replace the old one
IllegalShoutExceptionShoutAcceptingPolicy.check(edu.cuny.cat.core.Shout,
      edu.cuny.cat.core.Shout)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||