Package org.apache.sysds.hops.cost
Class FederatedCost
- java.lang.Object
-
- org.apache.sysds.hops.cost.FederatedCost
-
public class FederatedCost extends Object
Class storing execution cost estimates for federated executions with cost estimates split into different categories such as compute, read, and transfer cost.
-
-
Constructor Summary
Constructors Constructor Description FederatedCost()
FederatedCost(double readCost, double inputTransferCost, double outputTransferCost, double computeCost, double inputTotalCost, double repetitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInputTotalCost(double additionalCost)
Add cost to the stored input cost.void
addInputTotalCost(FederatedCost federatedCost)
Add total of federatedCost to stored inputTotalCost.double
getInputTotalCost()
Get summed input costs.double
getTotal()
Get the total sum of costs stored in this object.void
setInputTotalCost(double inputTotalCost)
String
toString()
-
-
-
Method Detail
-
getTotal
public double getTotal()
Get the total sum of costs stored in this object.- Returns:
- total cost
-
getInputTotalCost
public double getInputTotalCost()
Get summed input costs.- Returns:
- summed input costs
-
setInputTotalCost
public void setInputTotalCost(double inputTotalCost)
-
addInputTotalCost
public void addInputTotalCost(double additionalCost)
Add cost to the stored input cost.- Parameters:
additionalCost
- to add to total input cost
-
addInputTotalCost
public void addInputTotalCost(FederatedCost federatedCost)
Add total of federatedCost to stored inputTotalCost.- Parameters:
federatedCost
- input cost from which the total is retrieved
-
-