Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## SpaceTime.DataModel.VendorOrders
Interface Vendor

    public interface Vendor

Represents vendor data Passed by reference

Method Summary
`boolean` | `AddItem(java.lang.String itemId, java.lang.String cost)` Add new item to the vendor, item's cost may be unknown
`Tuple[]` | `AllItemsAndCosts()` All items with their costs that this vendor sells
`java.lang.String` | `GetItemCost(java.lang.String itemId)` Get item's cost
`java.lang.String` | `Id()` Vendor ID
`java.lang.String` | `Label()` Vendor Label
`boolean` | `SetItemCost(java.lang.String itemId, java.lang.String cost)` Change item's cost, returns false if the item with the specified index is not found

Method Detail

### Id

    java.lang.String Id()

  Vendor ID

### Label

    java.lang.String Label()

  Vendor Label

### AddItem

    boolean AddItem(java.lang.String itemId,
                    java.lang.String cost)

  Add new item to the vendor, item's cost may be unknown

  Parameters:
    `itemId` -
    `cost` -
  Returns:

### SetItemCost

    boolean SetItemCost(java.lang.String itemId,
                        java.lang.String cost)

  Change item's cost, returns false if the item with the specified index is not found

  Parameters:
    `itemId` -
    `cost` -
  Returns:

### GetItemCost

    java.lang.String GetItemCost(java.lang.String itemId)

  Get item's cost

  Parameters:
    `itemId` -
  Returns:

### AllItemsAndCosts

    Tuple[] AllItemsAndCosts()

  All items with their costs that this vendor sells

  Returns:

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD