The lims to support multiple clients to query and update

Assignment Help Data Structure & Algorithms
Reference no: EM13373217

The LIMS to support multiple clients to query and update the library inventory using a client/server model. LIMS should allow multiple clients to safely access the inventory, and using a producer-consumer model to borrow/return library items.

Elaboration:

1. Multiple instances of a client class should be supported.

2. Use threads and locks to provide safe access to the library inventory.

3. Add a field to each record in the database representing the maximum number of that item the library will hold.

4. Functions should include:

o Returning an item to the library, blocking if the maximum number of that item is reached until an item is borrowed.

o Borrowing an item, blocking if the desired item is not in the library until an item is returned.

o Allow a client to cancel a request that has been blocked.

Referancing style: APA style

The scenario is inspired by a LIbrary Management System (LIMS). For the first version of the project, the LIMS is a very basic one, allowing just for the import of data from a text file and perfom some basic search operations.

The elements of the LIMS are: the Library itself (let's consider just one instance for now) that contains a collection of Authors. Each Author includes a collection of Books he/she published.

Eventually (in the next versions of the project), there will be clients that will concurrently access the LIMS in order to borrow/return book copies.  

The Author and Book classes will have some attributes, mainly used for searching and sorting.

  1. Required data structure - the data structure I want you to implement is a multi-tree with the following levels:
    1. Library - Level 0
    2. Author - Level 1
    3. Book - Level 2
  2. Use at least the following classes, you are free to define others in the spirit of this application.
    Specifications for a few classes - you are free to add to this list.

o    Library

-  ArrayList <Author> as an instance variable data structure

o    Author - index, a name, an address and list of a number of Books (accessed by links to instances of the Book class). 

-  ArrayList <Book> as an instance variable data structure

o    Book - index, a title, a genre, author by index

Use the ArrayList class to hold instances of the classes defined in item 1. Be sure to use generics appropriately.

Use a text data file with the following format - which you may extend, and may be extended in the later projects. As a minimum, each item should be specified by a single line in the data file. The initial fields should be used during the instantiation of objects and your program should ignore later fields that are not used. For simplicity, let us assume that the fields are separated by colons. The specifications look something like the following, where the angle brackets are not part of the actual data file. I think we can assume that name, address, title and genre are strings.

o    b:<index>:<title>:<genre>:<price>:<author_index>

o    a:<index>:<name>:<address>

Download:- Library inventory using a client-server model.rar

Reference no: EM13373217

Questions Cloud

Shine corporation purchased 30 percent of the common stock : shine corporation purchased 30 percent of the common stock of ash corporation on january 1 2007 at 28000 in excess of
Part a use the financial statements in the text to : part a use the financial statements in the text to determine the following for jaeden industries.calculate jaedans free
Option pricing symantec corporation stock optionsconsider : option pricing symantec corporation stock optionsconsider the call and put options on the stock of symantec corporation
Instructionsa journalize the closing entries at april 30b : instructionsa journalize the closing entries at april 30.b post the closing entries to income summary and retained
The lims to support multiple clients to query and update : the lims to support multiple clients to query and update the library inventory using a clientserver model. lims
Question 1 bilton company reported net income of 30000 for : question 1. bilton company reported net income of 30000 for the year. during the year accounts receivable increased by
Part aan issue that attracts debate in relation to : part aan issue that attracts debate in relation to corporate governance is whether there should be a requirement that
Condensed financial data of fulton corp for 2008 and 2007 : condensed financial data of fulton corp. for 2008 and 2007 are presented below.fulton corp.comparative balance sheetas
Prepare an income statement statement of owners equity and : prepare an income statement statement of owners equity and a balance sheet. im still struggling with the steps involved

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Computing available storage space

There are twenty gigabyte of space on a computer's hard disk. I transfer information via a telephone line (connection) at the rate of 14,400 bits per second.

  Explaining diffie-hellman public-key algorithm

Use the Diffie-Hellman public-key algorithm to exchange secret keys.

  What is the linear data structure

what is the linear data structure ? Give example .Describe how an array is represented.

  Creating a database with a table

Design a database with a table called tblStudents and use Visual Studio.NET 2005 to create an ASP.NET project with four aspx forms. Use Master Pages to show a school name.

  Describe the jsp life cycle

Draw a diagram of the various events and transformations. Describe how you might implement logging in as used in the workshops using the session mechanism explaining what Java classes are involved and using code snippets.

  Determine the impedances of elements in laplace domain

Redraw the schematics with the impedance of each of the element shown in Laplace domain. Then determine the overall impedance of the entire circuit between the two ends of the shown circuit and express it in Laplace domain as a ratio of two polyno..

  Create an application to implement apriori algorithm

Create an application to implement Apriori Algorithm and demonstrate the two main phases in it, which are i) Generation of frequent itemsets; ii) Generation of association rules.

  Creating asp.net project with visual studio.net

Design an ASP.NET assignment with Visual Studio.NET 2005. Add an aspx form to the application. Place a ListBox control, a TextBox control and a Button control on the form.

  Single binary search tree

You must store the words and the counts of the words in a single binary search tree and each word occurring in the text can only be stored once in the tree

  Creating an access database

PLUS is a corporation that makes all types of visual aids for judicial proceedings. Customers are usually private law firms, although the District Attorney's office has occasionally contracted for its services.

  Create unix shell scripts using dos commands

Suppose you are an experienced DOS programmer and you wish to create UNIX shell scripts using DOS commands.

  Write algorithm to decide which commute is cheaper

Write working algorithm in pseudo code to decide which commute is cheaper: You wish to decide whether you must drive your car to work or take train. You know one-way distance

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd