Class StrengthVarSetImpl

    • Constructor Detail

      • StrengthVarSetImpl

        public StrengthVarSetImpl()
    • Method Detail

      • addAllStrengths

        public void addAllStrengths​(java.util.Collection<Strength> newStrengths)
        Description copied from interface: StrengthVarSet
        adds all the strengths and replaces variables and strengths of the same name.
        Specified by:
        addAllStrengths in interface StrengthVarSet
        Parameters:
        newStrengths - the strengths to add
      • addAllVariables

        public void addAllVariables​(java.util.Collection<CustomVariable> newVariables)
        Description copied from interface: StrengthVarSet
        adds all the variables and replaces variables and strengths of the same name.
        Specified by:
        addAllVariables in interface StrengthVarSet
        Parameters:
        newVariables - the variables to add
      • getStrengths

        public java.util.List<Strength> getStrengths()
        Specified by:
        getStrengths in interface StrengthVarSet
        Returns:
        all the available strengths (e.g. read from a strength-file)
      • clear

        public void clear()
        Description copied from interface: StrengthVarSet
        removes all the strengths and vars from the set.
        Specified by:
        clear in interface StrengthVarSet
      • getStrength

        public Strength getStrength​(java.lang.String key)
        Description copied from interface: StrengthVarSet
        find the strength of the given key
        Specified by:
        getStrength in interface StrengthVarSet
        Parameters:
        key - the key of the strength
        Returns:
        the strength or null if no strength was found for the give key.