Videoautomat

videoautomat.transition
Class HandBackCalculateSumTransition

java.lang.Object
  extended by 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 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

Constructor Summary
HandBackCalculateSumTransition()
           
 
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
 

Constructor Detail

HandBackCalculateSumTransition

public HandBackCalculateSumTransition()
Method Detail

perform

public Gate perform(SaleProcess sp,
                    User user)
Gate that performes the handback actions.


Videoautomat