com.softicar.platform.common.container.schedule.coverage.ScheduleCoverage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.container.schedule.coverage;
import com.softicar.platform.common.container.matrix.simple.SimpleMatrix;
import com.softicar.platform.common.math.arithmetic.IArithmetic;
public class ScheduleCoverage> extends SimpleMatrix> {
private final IArithmetic arithmetic;
public ScheduleCoverage(IArithmetic arithmetica) {
super(new ScheduleCoverageTraits(arithmetica));
this.arithmetic = arithmetica;
}
public void addQuantity(Row row, Column sourceColumn, Column targetColumn, Quantity quantity) {
addValue(row, sourceColumn, new ScheduleCoverageEntry<>(arithmetic, targetColumn, quantity));
}
public void addUnassignedQuantity(Row row, Column sourceColumn, Quantity quantity) {
addValue(row, sourceColumn, new ScheduleCoverageEntry(arithmetic, quantity));
}
}