8.5. Abstract Data Types

 <  Day Day Up  >  

The abstract data types are contained in the com.samscdrental.model.adt package:

 CustomerID.java     PhysicalID.java     Timestamp.java     UPCCode.java     Dollar.java     Name.java 

The ADTs have no dependencies to the model. They are reusable in a number of different programs. They represent common data types: CustomerID , PhysicalID , Timestamp , UPCCode , Dollar , and Name .

Each ADT has methods for converting to and from strings. Two ADTs have corresponding display classes, since they appear in GUI dialogs. These two are CustomerIDTextField and PhysicalIDTextField . If the other ADTs appear in future dialogs, equivalent widgets will be created.

 <  Day Day Up  >  


Prefactoring
Prefactoring: Extreme Abstraction, Extreme Separation, Extreme Readability
ISBN: 0596008740
EAN: 2147483647
Year: 2005
Pages: 175
Authors: Ken Pugh

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net