Yurttas/PL/OOL/Java/F/08/02/01/00/Inventory00.idl

From ZCubes Wiki
Revision as of 15:11, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="java" line start="1" enclose="div">module Inventory00 { struct CD { string title; string author; }; struct CatalogItem { CD aCD; ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1module Inventory00 {
 2
 3  struct CD {
 4    string title;
 5    string author;
 6  };
 7
 8  struct CatalogItem {
 9    CD aCD;
10    double price;
11    long quantity;
12  };
13
14  typedef sequence<CatalogItem> CatalogItemArray;
15
16  interface Inventory {
17    readonly attribute CatalogItemArray catalogItemsArray;
18
19    void addCatalogItem(in CatalogItem inItem);
20    boolean inInventory(in CatalogItem inItem);
21    CatalogItemArray getCatalogItems();
22    long getQuantityInInventory(in CatalogItem inItem);
23  };
24
25};