view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/CalculationMessage.java @ 3815:ecab7e7804a9 pre2.6-2012-01-04

merged flys-backend/pre2.6-2012-01-04
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:57 +0200
parents a470b7c3b165
children 4bd3d8bbb60c
line wrap: on
line source
package de.intevation.flys.artifacts.model;

import de.intevation.artifacts.Message;


public class CalculationMessage implements Message {

    protected String message;
    protected int    steps;
    protected int    currentStep;


    public CalculationMessage() {
    }


    public CalculationMessage(int steps, int currentStep, String message) {
        this.steps       = steps;
        this.currentStep = currentStep;
        this.message     = message;
    }


    public int getSteps() {
        return steps;
    }


    public int getCurrentStep() {
        return currentStep;
    }


    public String getMessage() {
        return message;
    }


    @Override
    public String getText() {
        return
            String.valueOf(currentStep) + "/" + String.valueOf(steps) +
            " - " + getMessage();
    }
}

http://dive4elements.wald.intevation.org