T
- the type of BOA
component that this model is manipulating,
and that comes out of the BoaWithSettingsRepItem
that is
delivered.public class BoaComponentModel<T extends BOA>
extends java.lang.Object
BoaWithSettingsRepItem
. The user
settings differ from the BoaWithSettingsRepItem
because the user can
enter ranges for all parameters where the BoaWithSettingsRepItem
contains just 1 setting per parameter.Constructor and Description |
---|
BoaComponentModel(BoaType type)
Construct model with default settings for given type.
|
BoaComponentModel(BoaWithSettingsRepItem<T> existingItem)
Creates a model from given existing settings.
|
Modifier and Type | Method and Description |
---|---|
protected BoaRepository |
getBoaRepo()
Factory method, for testing.
|
SingleSelectionModel<BoaRepItem<T>> |
getComponentsListModel() |
BoaParametersModel |
getParameters() |
java.util.List<BoaWithSettingsRepItem<T>> |
getValues()
all available settings.
|
public BoaComponentModel(BoaWithSettingsRepItem<T> existingItem)
existingItem
- the existing settings. Type must match T.InstantiateException
- if problem with repopublic BoaComponentModel(BoaType type)
type
- the type, must match T.protected BoaRepository getBoaRepo()
public java.util.List<BoaWithSettingsRepItem<T>> getValues()
public SingleSelectionModel<BoaRepItem<T>> getComponentsListModel()
public BoaParametersModel getParameters()
BoaParametersModel
.