package hex.leaderboard;

import hex.Model;
import water.Iced;
import water.Key;

public class AlgoName extends Iced<AlgoName> implements LeaderboardCell<String, AlgoName> {
    public static final LeaderboardColumn COLUMN = new LeaderboardColumn("algo", "string", "%s");
    final Key<Model> _modelId;
    private String _algo;

    public AlgoName(Model model) {
        this._modelId = model._key;
        this._algo = model._parms.algoName();
    }

    @Override
    public LeaderboardColumn getColumn() {
        return COLUMN;
    }

    @Override
    public Key<Model> getModelId() {
        return _modelId;
    }

    @Override
    public String getValue() {
        return _algo;
    }

    @Override
    public void setValue(String value) {
        throw new UnsupportedOperationException();
    }

}
