public class GodfreyBuilder extends java.lang.Object implements IStrategyBuilder
The GodfreyBuilder is a realization of the KDDStrategyBuilder and is used to validate incoming data and return a new instance of the GodfreyStrategy.
Constructor and Description |
---|
GodfreyBuilder() |
Modifier and Type | Method and Description |
---|---|
KDDStrategy |
build(java.util.ArrayList<IDataProvider> data)
This method should return a new instance of the KDDStrategy.
|
java.lang.String |
getStrategyName()
Return the name of this KDDStrategy.
|
java.util.ArrayList<Entry> |
getStrategyPropertiesAsEntries()
(non-Javadoc)
|
boolean |
isAvailable(java.util.ArrayList<IDataProvider> dataToCheck)
This method should take the input IDataProvider list and perform custom
checks on the providers to indicate whether or not the given data can be
used by the corresponding KDDStrategy.
|
public KDDStrategy build(java.util.ArrayList<IDataProvider> data)
This method should return a new instance of the KDDStrategy.
build
in interface IStrategyBuilder
data
- public java.lang.String getStrategyName()
Return the name of this KDDStrategy.
getStrategyName
in interface IStrategyBuilder
public boolean isAvailable(java.util.ArrayList<IDataProvider> dataToCheck)
This method should take the input IDataProvider list and perform custom checks on the providers to indicate whether or not the given data can be used by the corresponding KDDStrategy. This implementation should check that the correct features are available, then set the number of pin rows and columns, axial levels, and assemblies data for use in the build menu. If valid, it sets the isAvailable flag to true.
isAvailable
in interface IStrategyBuilder
dataToCheck
- public java.util.ArrayList<Entry> getStrategyPropertiesAsEntries()
getStrategyPropertiesAsEntries
in interface IStrategyBuilder
IStrategyBuilder.getStrategyPropertiesAsEntries()