
nl.tno.bim.nmd.domain.NmdCostFactor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bimnmdservice Show documentation
Show all versions of bimnmdservice Show documentation
provides a REST api for retrieving nmd data from various data sources
The newest version!
package nl.tno.bim.nmd.domain;
public class NmdCostFactor {
private Long objectId;
private String fase;
private String milieuCategorie;
private String productName; // name of productCard
private String profielSetName; // name of meterialSpec
private double value;
public NmdCostFactor(String fase, String milieuCategorie, double value) {
this.fase = fase;
this.milieuCategorie = milieuCategorie;
this.value = value;
}
public String getFase() {
return fase;
}
public String getMilieuCategorie() {
return this.milieuCategorie;
}
public String getProductName() {
return this.productName;
}
public void setProductName(String product) {
this.productName = product;
}
public Double getValue() {
return value;
}
public void setValue(double val) {
this.value = val;
}
public String getProfielSetName() {
return profielSetName;
}
public void setProfielSetName(String specName) {
this.profielSetName = specName;
}
public Long getObjectId() {
return this.objectId;
}
public void setObjectId(Long id) {
this.objectId = id;
}
/**
* override the equals method to avoid checking for value
*/
@Override
public boolean equals(Object otherFactor) {
if (!(otherFactor instanceof NmdCostFactor)) {
return false;
}
NmdCostFactor testFactor = (NmdCostFactor) otherFactor;
return testFactor.getObjectId() == this.getObjectId()
&& testFactor.getMilieuCategorie() == this.getMilieuCategorie()
&& testFactor.getFase() == this.getFase()
&& testFactor.getProductName() == this.getProductName()
&& testFactor.getProfielSetName() == this.getProfielSetName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy