Class Borrowable

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

public abstract class Borrowable
extends LibraryItem
implements Availability

Abstract container for borrowable library items

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

Field Summary
protected  int availability
          days since item borrowed
 int BOOK_FINE
          Constant fine for late items.
 
Fields inherited from class LibraryItem
callNumber, cost, usage
 
Constructor Summary
Borrowable(java.lang.String id, int val)
          Construct a borrowable library item given its call number and cost.
 
Method Summary
 int getReplacementCost()
          What is the replacement cost of the library item to the library
 void setAvailability(java.lang.String itemAvail)
          Set how many days since item was borrowed.
 
Methods inherited from class LibraryItem
getCallNumber, getCost, getUsage, isLost, setUsage
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

BOOK_FINE

public int BOOK_FINE
Constant fine for late items.

availability

protected int availability
days since item borrowed
Constructor Detail

Borrowable

public Borrowable(java.lang.String id,
                  int val)
Construct a borrowable library item given its call number and cost. Only called by subclasses.
Method Detail

getReplacementCost

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

setAvailability

public void setAvailability(java.lang.String itemAvail)
Set how many days since item was borrowed.
Specified by:
setAvailability in interface Availability