Exemplo n.º 1
0
        //adds rating r for a Suggestion ID, recalculates the averageRate
        public void addRate(String ID, Rate r)
        {
            Suggestion s = getSuggestion(ID);

            s.addRate(r);
            s.setAvgRate(s.averageRate());
        }