com.rubecula.jquantity
Class MillFactory

java.lang.Object
  extended bycom.rubecula.jquantity.MillFactory
All Implemented Interfaces:
Identifiable, MillFactoryInterface
Direct Known Subclasses:
MillFactory

public class MillFactory
extends java.lang.Object
implements MillFactoryInterface

Factory class for Mills.

Version:
$Revision: 1.4 $
Author:
Robin Hillyard

Constructor Summary
MillFactory()
           
 
Method Summary
 MillInterface createMill(java.lang.String name)
          Method to create a named Mill.
 java.lang.String getIdentifier()
          Method to get the specific identifier for an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MillFactory

public MillFactory()
Method Detail

createMill

public MillInterface createMill(java.lang.String name)
                         throws MillException
Method to create a named Mill.

Specified by:
createMill in interface MillFactoryInterface
Parameters:
name - the identifier for this Mill
Returns:
the newly constructed Mill
Throws:
MillException

getIdentifier

public java.lang.String getIdentifier()
Method to get the specific identifier for an object.

Specified by:
getIdentifier in interface Identifiable
Returns:
the identifier.