videoautomat.transition
Class HandBackCalculateSumTransition
java.lang.Object
|
+--videoautomat.transition.HandBackCalculateSumTransition
- All Implemented Interfaces:
- Serializable, sale.Transition
- public class HandBackCalculateSumTransition
- extends Object
- implements sale.Transition
a Transition that calculates the money the user get back, temporary re-adds the handed
back videos to the VideoShops stock and change to the
SaleProcessHandBack.getChangeGate(). If there is not enough change money in the shop, a
DisplayMoneyStockErroropens and it returns the sale.SaleProcess#getRollbackGate()
- Author:
- Alexander Herrmann
- See Also:
- Serialized Form
|
Method Summary |
sale.Gate |
perform(sale.SaleProcess sp,
users.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 sale.Gate perform(sale.SaleProcess sp,
users.User user)
- Gate that performes the handback actions.
- Specified by:
perform in interface sale.Transition