Class MatchRuleSet

    • Method Detail

      • getId

        public long getId()
      • setId

        public void setId​(long id)
      • isDeleted

        public boolean isDeleted()
      • setDeleted

        public void setDeleted​(boolean deleted)
      • addScoreRule

        public ScoreRule addScoreRule​(String id)
        Creates a new instance of the rule with the given id and adds it to this set.
        Parameters:
        id - rule id
        Returns:
        the newly created rule or null if the id does not refer to a valid rule.
      • removeScoreRule

        public void removeScoreRule​(ScoreRule scoreRule)
        Removes a score rule should it exist. As sideeffect of the removal, a weight property change event is fired. The new weight is 0.
        Parameters:
        scoreRule - score rule to remove
      • addPropertyChangeListener

        public void addPropertyChangeListener​(PropertyChangeListener propertyChangeListener)
      • removePropertyChangeListener

        public void removePropertyChangeListener​(PropertyChangeListener propertyChangeListener)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getThreshold

        public float getThreshold()
      • setThreshold

        public void setThreshold​(float threshold)
      • addSongFilter

        public void addSongFilter​(SongPropertyFilter songFilter)
        Parameters:
        songFilter - songfilter
      • removeSongFilter

        public void removeSongFilter​(SongPropertyFilter songFilter)
        Parameters:
        songFilter - songfilter
      • getScoreRulesInInsertionOrder

        public List<ScoreRule> getScoreRulesInInsertionOrder()
      • getScoreRules

        public List<ScoreRule> getScoreRules()
        The sorted list of score rules contained in this set.
        Returns:
        a list of scorerules sorted by their absolute weight, heaviest first.
      • getQuickMatchScoreRules

        public List<ScoreRule> getQuickMatchScoreRules()
        The sorted list of score rules contained in this set, minus rules that shouldn't be used for quick matching.
        Returns:
        a list of scorerules sorted by their absolute weight, heaviest first.
        See Also:
        ScoreRule.isIgnoredWhileQuickMatching()
      • hasNonQuickMatchScoreRules

        public boolean hasNonQuickMatchScoreRules()
      • addDefaultScoreRules

        public void addDefaultScoreRules()
      • getUnusedScoreRules

        public List<ScoreRule> getUnusedScoreRules()