videoautomat.transition
Class RentPayConfirmTransition
java.lang.Object
|
+--videoautomat.transition.RentPayConfirmTransition
- All Implemented Interfaces:
- Serializable, sale.Transition
- public class RentPayConfirmTransition
- extends Object
- implements sale.Transition
Transition
that temporary adds the selected videos to the
AutomatUser.getVideoStock()
, the inserted money to the VideoShop.getVideoStock()
and from there transacts the change money
- Author:
- Tobias Ruch
- See Also:
- Serialized Form
Method Summary |
sale.Gate |
perform(sale.SaleProcess sp,
users.User user)
Performes the transition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RentPayConfirmTransition
public RentPayConfirmTransition()
perform
public sale.Gate perform(sale.SaleProcess sp,
users.User user)
- Performes the transition.
- Specified by:
perform
in interface sale.Transition
- Parameters:
sp
- - current processuser
- - current user of this process
- Returns:
- the new
Gate
which should be shown after the transition