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

net.sourceforge.plantuml.project.ConstantPlan Maven / Gradle / Ivy

There is a newer version: 1.2024.8
Show newest version
// 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;

	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy