package de.ivu.elect.business.auffaelligkeit.entity;

import java.util.List;
import java.util.Locale;

import de.ivu.elect.business.gruppe.entity.PolitischeGruppe;
import de.ivu.elect.jee.faces.Messages;
import de.ivu.elect.jee.presentation.dynamictable.ColumnType;

public abstract class AuffaelligkeitBemerkung {
  private double auffaelligkeitsskala;

  public AuffaelligkeitBemerkung(double auffaelligkeitsskala) {
    this.auffaelligkeitsskala = auffaelligkeitsskala;
  }

  String getNumberInAbsoluteValueFormattedInDecimalTwoFractionDigitsPercentageForm(Number number, Locale locale, Messages messages) {
    ColumnType columnType = ColumnType.DECIMAL_TWO_FRACTION_DIGITS_PERCENTAGE;
    return columnType.toCsv(number, locale, messages);
  }

  public abstract String getAuffaelligkeitBemerkungAlsString(Locale locale, Messages messages);
  public abstract List<PolitischeGruppe> getInvolvedPartys();
}
