Videoautomat

videoautomat.transition
Class RentPayConfirmTransition

java.lang.Object
  extended by videoautomat.transition.RentPayConfirmTransition

public class RentPayConfirmTransition
extends Object

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

Constructor Summary
RentPayConfirmTransition()
           
 
Method Summary
 Gate perform(SaleProcess sp, User user)
          Performes the transition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RentPayConfirmTransition

public RentPayConfirmTransition()
Method Detail

perform

public Gate perform(SaleProcess sp,
                    User user)
Performes the transition.

Parameters:
sp - - current process
user - - current user of this process
Returns:
the new Gate which should be shown after the transition

Videoautomat