Interface StrengthVarSet
-
- All Known Implementing Classes:
StrengthVarSetImpl
public interface StrengthVarSet
A set of strengthes and variables, like it is created when parsing the strength files. It allows to put new strengthes and variables. Nevertheless if variables or strengthes with the same name already exist, then they override the old ones! This is in order to correctly deal with optics definitions and optics overlays.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAllStrengths(java.util.Collection<Strength> strengths)
adds all the strengths and replaces variables and strengths of the same name.void
addAllVariables(java.util.Collection<CustomVariable> variables)
adds all the variables and replaces variables and strengths of the same name.void
clear()
removes all the strengths and vars from the set.Strength
getStrength(java.lang.String key)
find the strength of the given keyjava.util.List<Strength>
getStrengths()
java.util.List<CustomVariable>
getVariables()
-
-
-
Method Detail
-
clear
void clear()
removes all the strengths and vars from the set.
-
getVariables
java.util.List<CustomVariable> getVariables()
- Returns:
- all the available variables (e.g. read from a strength-file)
-
getStrengths
java.util.List<Strength> getStrengths()
- Returns:
- all the available strengths (e.g. read from a strength-file)
-
addAllVariables
void addAllVariables(java.util.Collection<CustomVariable> variables)
adds all the variables and replaces variables and strengths of the same name.- Parameters:
variables
- the variables to add
-
addAllStrengths
void addAllStrengths(java.util.Collection<Strength> strengths)
adds all the strengths and replaces variables and strengths of the same name.- Parameters:
strengths
- the strengths to add
-
getStrength
Strength getStrength(java.lang.String key)
find the strength of the given key- Parameters:
key
- the key of the strength- Returns:
- the strength or
null
if no strength was found for the give key.
-
-