All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jbgust.jsrm.infra.pressure.resultprovider.BurningSurfaceResultProvider Maven / Gradle / Ivy

package com.github.jbgust.jsrm.infra.pressure.resultprovider;

import com.github.jbgust.jsrm.application.motor.grain.GrainConfigutation;

public class BurningSurfaceResultProvider extends AbstractGrainResultProvider {

    public static final String BURNING_SURFACE_VARIABLE = "burningSurface";

    public BurningSurfaceResultProvider(GrainConfigutation grainConfigutation, int numberLineDuringBurnCalculation) {
        super(grainConfigutation, numberLineDuringBurnCalculation);
    }

    @Override
    public String getName() {
        return BURNING_SURFACE_VARIABLE;
    }

    @Override
    public double getResult(int lineNumber) {
        return grainConfigutation.getBurningArea(getProgression(lineNumber));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy