Class LibraryBook

java.lang.Object
  |
  +--LibraryItem
        |
        +--Borrowable
              |
              +--LibraryBook
All Implemented Interfaces:
Availability

public class LibraryBook
extends Borrowable

Container for book items. Implements isLost and getReplacementCost functions.

Version:
FINAL 17-OCT-2003
Author:
Ned Martin 40529927

Fields inherited from class Borrowable
availability, BOOK_FINE
 
Fields inherited from class LibraryItem
callNumber, cost, usage
 
Constructor Summary
LibraryBook(java.lang.String id, int val)
          Construct a library item given its call number and cost.
 
Method Summary
 int getReplacementCost()
          What is the replacement cost of the library item to the library.
 boolean isLost()
          Has the library item been lost.
 
Methods inherited from class Borrowable
setAvailability
 
Methods inherited from class LibraryItem
getCallNumber, getCost, getUsage, setUsage
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

LibraryBook

public LibraryBook(java.lang.String id,
                   int val)
Construct a library item given its call number and cost. Type is B - book
Method Detail

isLost

public boolean isLost()
Has the library item been lost.
Overrides:
isLost in class LibraryItem
Returns:
true if the library item is lost

getReplacementCost

public int getReplacementCost()
What is the replacement cost of the library item to the library.
Overrides:
getReplacementCost in class Borrowable
Returns:
the integer replacement cost of the library item