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 SummaryConstructors Constructor Description FederatedCost()FederatedCost(double readCost, double inputTransferCost, double outputTransferCost, double computeCost, double inputTotalCost, double repetitions)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInputTotalCost(double additionalCost)Add cost to the stored input cost.voidaddInputTotalCost(FederatedCost federatedCost)Add total of federatedCost to stored inputTotalCost.doublegetInputTotalCost()Get summed input costs.doublegetTotal()Get the total sum of costs stored in this object.voidsetInputTotalCost(double inputTotalCost)StringtoString()
 
- 
- 
- 
Method Detail- 
getTotalpublic double getTotal() Get the total sum of costs stored in this object.- Returns:
- total cost
 
 - 
getInputTotalCostpublic double getInputTotalCost() Get summed input costs.- Returns:
- summed input costs
 
 - 
setInputTotalCostpublic void setInputTotalCost(double inputTotalCost) 
 - 
addInputTotalCostpublic void addInputTotalCost(double additionalCost) Add cost to the stored input cost.- Parameters:
- additionalCost- to add to total input cost
 
 - 
addInputTotalCostpublic void addInputTotalCost(FederatedCost federatedCost) Add total of federatedCost to stored inputTotalCost.- Parameters:
- federatedCost- input cost from which the total is retrieved
 
 
- 
 
-