|
Videoautomat | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSaleProcess
videoautomat.SaleProcessRent
public class SaleProcessRent
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 |
---|
public static final String SUB_SHOP_VIDEO
public static final String SUB_USER_VIDEO
public static final String SUB_TMP_MONEY
public static final String SUB_SHOP_MONEY
Constructor Detail |
---|
public SaleProcessRent()
Method Detail |
---|
protected Gate getInitialGate()
Gate
where the user makes a selectionsale.SaleProcess#getInitialGate()
public Gate restart()
public Gate getPayGate()
Gate
where the money gets insertedpublic Gate getConfirmGate()
Gate
where the selected videos and the change money is shownpublic MoneyBagImpl getTemporaryMoneyBag()
public void setTemporaryMoneyBag(MoneyBagImpl temporaryMoneyBag)
temporaryMoneyBag
- the temporary money bag to setpublic NumberValue getSumNumberValue()
public void setSumNumberValue(NumberValue sumNumberValue)
sumNumberValue
- the sum to set
|
Videoautomat | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |