Videoautomat

videoautomat
Class SaleProcessRent

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

public class SaleProcessRent
extends SaleProcess

This class implements a SaleProcess used to rent videos.


Field Summary
static String SUB_SHOP_MONEY
          Key of Databasket-subbasket which contains the temporary removed money of the VideoShops MoneyBag
static String SUB_SHOP_VIDEO
          Key of a Databasket-subbasket which contains the temporary removed videos of the VideoShops stock
static String SUB_TMP_MONEY
          Key of Databasket-subbasket which contains the temporary added money of the user
static String SUB_USER_VIDEO
          Key of Databasket-subbasket which contains the temporary added videos of the users-stock
 
Constructor Summary
SaleProcessRent()
          Constructs a new SaleProcessRent
 
Method Summary
 Gate getConfirmGate()
           
protected  Gate getInitialGate()
          Implementation of the inherited abstract method.
 Gate getPayGate()
           
 NumberValue getSumNumberValue()
          Get the sum.
 MoneyBagImpl getTemporaryMoneyBag()
          Get the temporary money bag.
 Gate restart()
          Returns the initial gate.
 void setSumNumberValue(NumberValue sumNumberValue)
          Set the sum.
 void setTemporaryMoneyBag(MoneyBagImpl temporaryMoneyBag)
          Set the temporary money bag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUB_SHOP_VIDEO

public static final String SUB_SHOP_VIDEO
Key of a Databasket-subbasket which contains the temporary removed videos of the VideoShops stock

See Also:
Constant Field Values

SUB_USER_VIDEO

public static final String SUB_USER_VIDEO
Key of Databasket-subbasket which contains the temporary added videos of the users-stock

See Also:
Constant Field Values

SUB_TMP_MONEY

public static final String SUB_TMP_MONEY
Key of Databasket-subbasket which contains the temporary added money of the user

See Also:
Constant Field Values

SUB_SHOP_MONEY

public static final String SUB_SHOP_MONEY
Key of Databasket-subbasket which contains the temporary removed money of the VideoShops MoneyBag

See Also:
Constant Field Values
Constructor Detail

SaleProcessRent

public SaleProcessRent()
Constructs a new SaleProcessRent

Method Detail

getInitialGate

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

Returns:
a Gate where the user makes a selection
See Also:
sale.SaleProcess#getInitialGate()

restart

public Gate restart()
Returns the initial gate.

Returns:
intialGate

getPayGate

public Gate getPayGate()
Returns:
a Gate where the money gets inserted

getConfirmGate

public Gate getConfirmGate()
Returns:
a Gate where the selected videos and the change money is shown

getTemporaryMoneyBag

public MoneyBagImpl getTemporaryMoneyBag()
Get the temporary money bag.

Returns:
the temporary money bag

setTemporaryMoneyBag

public void setTemporaryMoneyBag(MoneyBagImpl temporaryMoneyBag)
Set the temporary money bag.

Parameters:
temporaryMoneyBag - the temporary money bag to set

getSumNumberValue

public NumberValue getSumNumberValue()
Get the sum.

Returns:
the sum

setSumNumberValue

public void setSumNumberValue(NumberValue sumNumberValue)
Set the sum.

Parameters:
sumNumberValue - the sum to set

Videoautomat