Großmarkt

market
Class CIOpenPurchaseOrders

java.lang.Object
  |
  +--data.AbstractNameable
        |
        +--data.ooimpl.CatalogItemImpl
              |
              +--market.CIOpenPurchaseOrders
All Implemented Interfaces:
CatalogItem, Cloneable, Comparable, DataBasketKeys, Nameable, Serializable

public class CIOpenPurchaseOrders
extends CatalogItemImpl

A purchase order placed by the manager, which has not yet arrived.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class data.AbstractNameable
m_ncContext, m_pcsPropertyListeners
 
Fields inherited from interface data.CatalogItem
VALUE_PROPERTY
 
Fields inherited from interface data.Nameable
NAME_PROPERTY
 
Fields inherited from interface data.DataBasketKeys
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY
 
Constructor Summary
CIOpenPurchaseOrders(String date, int nr, CountingStock cs)
           
 
Method Summary
 void decreaseDaysTillArrival(int i)
          Decreases the number of days the market has to wait for a delivery to arrive.
 String getDate()
           
 int getDaysTillArrival()
           
 int getOrderNumber()
           
 CountingStock getOrders()
           
 Double getOrdersValue()
           
protected  CatalogItemImpl getShallowClone()
           
 
Methods inherited from class data.ooimpl.CatalogItemImpl
addValueListener, compareTo, equals, getCatalog, getValue, isEditable, removeValueListener, setValue, toString
 
Methods inherited from class data.AbstractNameable
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface data.Nameable
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName
 

Constructor Detail

CIOpenPurchaseOrders

public CIOpenPurchaseOrders(String date,
                            int nr,
                            CountingStock cs)
Parameters:
date - date of the order.
nr - order number, this parameter is necessary to distinguish between two or more orders placed on the same day.
cs - CountingStock with CIArticles that are ordered.
Method Detail

getDate

public String getDate()
Returns:
the date of the order.

getOrderNumber

public int getOrderNumber()
Returns:
the order number.

getOrders

public CountingStock getOrders()
Returns:
the CountingStock with the orders.

getOrdersValue

public Double getOrdersValue()
Returns:
the value of the orders.

getDaysTillArrival

public int getDaysTillArrival()
Returns:
the number of days the market still has to wait for the delivery to arrive.

decreaseDaysTillArrival

public void decreaseDaysTillArrival(int i)
Decreases the number of days the market has to wait for a delivery to arrive.


getShallowClone

protected CatalogItemImpl getShallowClone()
Specified by:
getShallowClone in class CatalogItemImpl
Returns:
a clone of the given CatalogItemImpl.

Großmarkt