public class ParameterDriversList extends Object
parameter drivers
,
taking care of duplicated names.Modifier and Type | Class and Description |
---|---|
static class |
ParameterDriversList.DelegatingDriver
Specialized driver delegating to several other managing
the same parameter name.
|
Constructor and Description |
---|
ParameterDriversList()
Creates an empty list.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ParameterDriver driver)
Add a driver.
|
void |
filter(boolean selected)
Filter parameters to keep only one type of selection status.
|
List<ParameterDriversList.DelegatingDriver> |
getDrivers()
Get delegating drivers for all parameters.
|
int |
getNbParams()
Get the number of parameters with different names.
|
void |
sort()
Sort the parameters lexicographically.
|
public void add(ParameterDriver driver) throws OrekitException
If the driver is already present, it will not be added. If another driver managing the same parameter is present, both drivers will be managed together, existing drivers being set to the value of the last driver added (i.e. each addition overrides the parameter value).
driver
- driver to addOrekitException
- if an existing driver for the
same parameter throws one when its value is reset using the
new driver valuepublic void sort()
public void filter(boolean selected)
selected
- if true, only selected
parameters will be kept, the other ones will be removedpublic int getNbParams()
public List<ParameterDriversList.DelegatingDriver> getDrivers()
The delegating drivers are not the same as the drivers added to the list, but they delegate to them.
All delegating drivers manage parameters with different names.
Copyright © 2002-2016 CS Systèmes d'information. All rights reserved.