Class ReferenceItem

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

public class ReferenceItem
extends Stealable

Container for reference items. Implements getReplacementCost function.

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

Fields inherited from class Stealable
availability
 
Fields inherited from class LibraryItem
callNumber, cost, usage
 
Constructor Summary
ReferenceItem(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.
 
Methods inherited from class Stealable
getAvailability, isLost, 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

ReferenceItem

public ReferenceItem(java.lang.String id,
                     int val)
Construct a library item given its call number and cost. Type is R - reference item
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