com.github.MDingas.ALTO.Costs.Cost Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ALTO Show documentation
Show all versions of ALTO Show documentation
Proprosed ALTO library to enable roles for ALTO Client, ALTO Server and third party content uploaders
The newest version!
package com.github.MDingas.ALTO.Costs;
/**
* Concrete specification of a CostInfo, thus including the actual value
* If the cost is numerical, simply add the string representation of it
*/
public class Cost extends CostInfo {
private String value;
public Cost() {
super();
this.value = "";
}
public Cost(String value) {
this.value = value;
}
public Cost(CostMode mode, String metric, String description, String value) {
super(mode, metric, description);
this.value = value;
}
public Cost(CostInfo c, String value) {
super(c);
this.value = value;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String toString() {
return "teste numero 1";
}
}