public class GodfreyStrategy extends CompositeStrategy
The GodfreyStrategy is a CompositeStrategy that is composed of a number of KDDStrategies that are used in calculating various statistics on the axial power, radial power, assembly power, and full reactor power. Clients should provide an IDataProvider that contains the features "Number of Pin Rows", "Number of Pin Columns", "Number of Assemblies", and "Data". The features should correspond to one element ArrayLists of IData giving the pin power matrix size. This Strategy will then parse the data for the number of axial levels, and create a HashMap of assembly indices to an ArrayList of KDDMatrices of size number of axial levels.
Constructor and Description |
---|
GodfreyStrategy()
The nullary constructor.
|
GodfreyStrategy(int nRows,
int nCols,
int nAxial,
int nAssemblies,
java.util.ArrayList<IData> data,
java.util.ArrayList<IData> refData)
The constructor.
|
GodfreyStrategy(SubStrategyFactory factory,
int nRows,
int nCols,
int nAxial,
int nAssemblies,
java.util.ArrayList<IData> data,
java.util.ArrayList<IData> refData)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
executeStrategy()
(non-Javadoc)
|
int |
getNumberOfAssemblies()
Return the number of fuel pin assemblies.
|
int |
getNumberOfAxialLevels()
Return the number of axial levels in a given fuel pin.
|
int |
getNumberOfPinCols()
Return the number of columns in the pin powers matrix.
|
int |
getNumberOfPinRows()
Return the number of rows in the pin powers matrix.
|
java.util.ArrayList<Entry> |
getPropertiesAsEntryList()
This operation returns the asset's properties as a list of Entry objects.
|
getName, getProperties, getProperty, getType, getURI, resetProperties, setProperty
public GodfreyStrategy(int nRows, int nCols, int nAxial, int nAssemblies, java.util.ArrayList<IData> data, java.util.ArrayList<IData> refData)
The constructor. Should initialize the following properties: Symmetry (default is Full, other options are Half, Quarter, Eighth), DifferenceType (default is Basic, other option is Relative), "SubStrategyName" that takes values yes or no, indicating whether the user wants to run the particular sub strategy algorithm. Note that at this point, the data should already be validated.
nRows
- nCols
- nAxial
- nAssemblies
- data
- refData
- java.lang.IllegalArgumentException
public GodfreyStrategy(SubStrategyFactory factory, int nRows, int nCols, int nAxial, int nAssemblies, java.util.ArrayList<IData> data, java.util.ArrayList<IData> refData)
The constructor.
public GodfreyStrategy()
The nullary constructor.
public boolean executeStrategy()
CompositeStrategy
executeStrategy
in class CompositeStrategy
KDDStrategy.executeStrategy()
public int getNumberOfPinRows()
Return the number of rows in the pin powers matrix.
public int getNumberOfPinCols()
Return the number of columns in the pin powers matrix.
public int getNumberOfAxialLevels()
Return the number of axial levels in a given fuel pin.
public int getNumberOfAssemblies()
Return the number of fuel pin assemblies.
public java.util.ArrayList<Entry> getPropertiesAsEntryList()
This operation returns the asset's properties as a list of Entry objects.
getPropertiesAsEntryList
in interface IAnalysisAsset
getPropertiesAsEntryList
in class KDDStrategy