001package org.dllearner.algorithms.miles;
002import java.util.SortedSet;
003
004/**
005 * Linear combination of weighted descriptions, i.e. w_1*C1 AND ... AND w_n*C_n .
006 * @author Lorenz Buehmann
007 *
008 */
009public class WeightedDescriptionLinearCombination {
010        
011        private SortedSet<WeightedDescription> weightedDescriptions;
012        
013        public WeightedDescriptionLinearCombination(SortedSet<WeightedDescription> weightedDescriptions) {
014                this.weightedDescriptions = weightedDescriptions;
015        }
016
017        /**
018         * @return the weighted descriptions
019         */
020        public SortedSet<WeightedDescription> getWeightedDescriptions() {
021                return weightedDescriptions;
022        }
023        
024        /* (non-Javadoc)
025         * @see java.lang.Object#toString()
026         */
027        @Override
028        public String toString() {
029                StringBuilder sb = new StringBuilder();
030                for (WeightedDescription wd : weightedDescriptions) {
031                        sb.append(wd).append(" ");
032                }
033                return sb.toString();
034        }
035}