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
This measurement captures execution costs w.r.t. to Wayang's cost model.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeserialization constructor.CostMeasurement(String id, double lowerCost, double upperCost, double probability) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoublevoidsetLowerCost(double lowerCost) voidsetProbability(double probability) voidsetUpperCost(double upperCost) Methods inherited from class org.apache.wayang.commons.util.profiledb.model.Measurement
equals, getId, getType, getTypeName, hashCode, setId
-
Constructor Details
-
CostMeasurement
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 Details
-
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)
-