com.rubecula.util
Interface PresentableFactoryInterface

All Known Implementing Classes:
PresentableFactory

public interface PresentableFactoryInterface

Factory interface to create new presentables from doubles or longs.

Since:
V_0_1
Version:
$Revision: 1.3 $
Author:
Robin Hillyard

Method Summary
 Presentable createPresentable(double value, double bound)
          Method to create a new Presentable equivalent to the value provided.
 Presentable createPresentable(long value)
          Method to create a new Presentable equivalent to the value provided.
 

Method Detail

createPresentable

public Presentable createPresentable(long value)
                              throws PresentableException
Method to create a new Presentable equivalent to the value provided.

Parameters:
value - a long which represents the value to be created.
Returns:
the newly minted presentation.
Throws:
PresentableException - problem parsing the string given.

createPresentable

public Presentable createPresentable(double value,
                                     double bound)
                              throws PresentableException
Method to create a new Presentable equivalent to the value provided.

Parameters:
value - a double which represents the value to be created.
bound - the relative error bound of the value.
Returns:
the newly minted presentable object with the given value and error bound.
Throws:
PresentableException - problem parsing the string given.