videoautomat.transition
Class HandBackCalculateSumTransition
java.lang.Object
videoautomat.transition.HandBackCalculateSumTransition
public class HandBackCalculateSumTransition
- extends Object
a Transition
that calculates the money the user get back, temporary re-adds the handed
back videos to the VideoShop
s stock and change to the
SaleProcessHandBack.getChangeGate()
. If there is not enough change money in the shop, a
DisplayMoneyStockError
opens and it returns the sale.SaleProcess#getRollbackGate()
- Author:
- Alexander Herrmann
Method Summary |
Gate |
perform(SaleProcess sp,
User user)
Gate that performes the handback actions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HandBackCalculateSumTransition
public HandBackCalculateSumTransition()
perform
public Gate perform(SaleProcess sp,
User user)
- Gate that performes the handback actions.