edu.columbia.surge
Interface PreModFactory
- All Known Implementing Classes:
- PreModFactoryH
- public abstract interface PreModFactory
This class holds the factory methods for the PreMod class. Users can
use this class to create instances of PreMod objects with their
desired parameters.
- See Also:
PreMod
Field Summary |
static PreModFactory |
factory
The static instance which helps users to access to the methods in
this class. |
Method Summary |
PreMod |
create()
A factory method which creates a default instance of PreMod. |
PreMod |
create(FD instrument)
A factory method which takes it the instrument of a
pred-modifier as parameter to compute and return an instance of
PreMod. |
factory
public static final PreModFactory factory
- The static instance which helps users to access to the methods in
this class.
create
public PreMod create()
- A factory method which creates a default instance of PreMod.
- Returns:
- a default instance of PreMod
create
public PreMod create(FD instrument)
throws InvalidPathException,
InvalidConstructorException
- A factory method which takes it the instrument of a
pred-modifier as parameter to compute and return an instance of
PreMod. Exception will be thrown when the instrument FD is
invalid.
- Parameters:
instrument
- the instrument of the pred-modifier- Returns:
- an instance of PreMod with the given instrument
- Throws:
- InvalidPathException -
- InvalidConstructorException -