Videoautomat

videoautomat
Class SaleProcessHandBack

java.lang.Object
  extended by SaleProcess
      extended by videoautomat.SaleProcessHandBack

public class SaleProcessHandBack
extends SaleProcess

This class implements a SaleProcess to hand back the videos.

Author:
Alexander Herrmann

Constructor Summary
SaleProcessHandBack()
          Constructs a new SaleProcessHandBack
 
Method Summary
 Gate getChangeGate()
           
 NumberValue getChangeMoneyNumberValue()
          Get the NumberValue representing the change money.
protected  Gate getInitialGate()
          Implementation of the inherited abstract method.
 MoneyBag getTemporaryChangeMoneyBag()
          Get the MoneyBag to temporarily store the change money.
  getTemporaryVideosStoringStock()
          Get the StoringStock to store temporary videos.
 Gate restart()
          Returns the initial Gate.
 void setChangeMoneyNumberValue(NumberValue changeMoneyNumberValue)
          Set the NumberValue representing the change money.
 void setTemporaryChangeMoneyBag(MoneyBag temporaryChangeMoneyBag)
          Set the MoneyBag to temporarily store the change money.
 void setTemporaryVideosStoringStock( temporaryVideosStoringStock)
          Set the StoringStock to store temporary videos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaleProcessHandBack

public SaleProcessHandBack()
Constructs a new SaleProcessHandBack

Method Detail

getInitialGate

protected Gate getInitialGate()
Implementation of the inherited abstract method.

Returns:
the Gate where the user will see his/her current rented videos.
See Also:
sale.SaleProcess#getInitialGate()

restart

public Gate restart()
Returns the initial Gate.

Returns:
initialGate

getChangeGate

public Gate getChangeGate()
Returns:
the Gate where the user will see his/her change money.

getTemporaryVideosStoringStock

public  getTemporaryVideosStoringStock()
Get the StoringStock to store temporary videos.

Returns:
the StoringStock to store temporary videos

setTemporaryVideosStoringStock

public void setTemporaryVideosStoringStock( temporaryVideosStoringStock)
Set the StoringStock to store temporary videos.

Parameters:
temporaryVideosStoringStock - the StoringStock to store temporary videos

getTemporaryChangeMoneyBag

public MoneyBag getTemporaryChangeMoneyBag()
Get the MoneyBag to temporarily store the change money.

Returns:
the MoneyBag to temporarily store the change money

setTemporaryChangeMoneyBag

public void setTemporaryChangeMoneyBag(MoneyBag temporaryChangeMoneyBag)
Set the MoneyBag to temporarily store the change money.

Parameters:
temporaryChangeMoneyBag - the MoneyBag to temporarily store the change money

getChangeMoneyNumberValue

public NumberValue getChangeMoneyNumberValue()
Get the NumberValue representing the change money.

Returns:
the NumberValue representing the change money

setChangeMoneyNumberValue

public void setChangeMoneyNumberValue(NumberValue changeMoneyNumberValue)
Set the NumberValue representing the change money.

Parameters:
changeMoneyNumberValue - the NumberValue representing the change money

Videoautomat