net.sourceforge.plantuml.project.ConstantPlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.project;
import net.sourceforge.plantuml.project.time.Day;
public class ConstantPlan implements LoadPlanable {
private final int loadPerInstant;
private ConstantPlan(int loadPerInstant) {
this.loadPerInstant = loadPerInstant;
}
public static LoadPlanable normal() {
return new ConstantPlan(100);
}
public static LoadPlanable partial(int load) {
return new ConstantPlan(load);
}
public int getLoadAt(Day instant) {
return loadPerInstant;
}
}