* the weight of the Rating relation
* @return the created ApplicableElement
*/
public Rating createRatingRelation(Element sourceElement,
Element targetElement, float weight) {
Rating rating = QueryFactory.eINSTANCE.createRating();
rating.setSource(sourceElement);
rating.setTarget(targetElement);
rating.setWeight(String.valueOf(weight));
getQueryResultSet().getRatings().add(rating);
addRatingToCache(rating, sourceElement, targetElement, weight);
return rating;
}