Videoautomat

videoautomat.transition
Class RentSumUpTransition

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

public class RentSumUpTransition
extends Object

Transition that sums up the prices of the selected videos and leads to the SaleProcessRent.getPayGate(), if no video is selected it leads to the SaleProcessRent.getInitialGate()

Author:
Tobias Ruch

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

RentSumUpTransition

public RentSumUpTransition()
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