Package org.apache.wayang.core.profiling
Class CostMeasurement
- java.lang.Object
-
- org.apache.wayang.commons.util.profiledb.model.Measurement
-
- org.apache.wayang.core.profiling.CostMeasurement
-
public class CostMeasurement extends Measurement
This measurement captures execution costs w.r.t. to Wayang's cost model.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CostMeasurement()
Deserialization constructor.CostMeasurement(java.lang.String id, double lowerCost, double upperCost, double probability)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLowerCost()
double
getProbability()
double
getUpperCost()
void
setLowerCost(double lowerCost)
void
setProbability(double probability)
void
setUpperCost(double upperCost)
-
Methods inherited from class org.apache.wayang.commons.util.profiledb.model.Measurement
equals, getId, getType, getTypeName, hashCode, setId
-
-
-
-
Constructor Detail
-
CostMeasurement
public CostMeasurement(java.lang.String id, double lowerCost, double upperCost, double probability)
Creates a new instance.- Parameters:
id
- the ID of the instancelowerCost
- the lower bound of the costupperCost
- the upper bound of the costprobability
- the probability of the actual cost being within the bounds
-
CostMeasurement
protected CostMeasurement()
Deserialization constructor.
-
-
Method Detail
-
getLowerCost
public double getLowerCost()
-
setLowerCost
public void setLowerCost(double lowerCost)
-
getUpperCost
public double getUpperCost()
-
setUpperCost
public void setUpperCost(double upperCost)
-
getProbability
public double getProbability()
-
setProbability
public void setProbability(double probability)
-
-