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

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

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

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

public class EndGrainSurfaceResultProvider extends AbstractGrainResultProvider {

    public static final String END_GRAIN_SURFACE_VARIABLE = "endGrainSurface";

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy