public class FederatedCost extends Object
Constructor and Description |
---|
FederatedCost() |
FederatedCost(double readCost,
double inputTransferCost,
double outputTransferCost,
double computeCost,
double inputTotalCost) |
Modifier and Type | Method and Description |
---|---|
void |
addFederatedCost(FederatedCost additionalCost)
Add costs of FederatedCost object to this object's current costs.
|
void |
addInputTotalCost(double additionalCost)
Add cost to the stored input cost.
|
void |
addInputTotalCost(FederatedCost federatedCost)
Add total of federatedCost to stored inputTotalCost.
|
void |
addRepetitionCost(int repetitionNumber)
Multiply the input costs by the number of times the costs are repeated.
|
double |
getInputTotalCost()
Get summed input costs.
|
double |
getTotal()
Get the total sum of costs stored in this object.
|
void |
setInputTotalCost(double inputTotalCost) |
String |
toString() |
public FederatedCost()
public FederatedCost(double readCost, double inputTransferCost, double outputTransferCost, double computeCost, double inputTotalCost)
public double getTotal()
public void addRepetitionCost(int repetitionNumber)
repetitionNumber
- number of repetitions of the costspublic double getInputTotalCost()
public void setInputTotalCost(double inputTotalCost)
public void addInputTotalCost(double additionalCost)
additionalCost
- to add to total input costpublic void addInputTotalCost(FederatedCost federatedCost)
federatedCost
- input cost from which the total is retrievedpublic void addFederatedCost(FederatedCost additionalCost)
additionalCost
- object to add to this objectCopyright © 2021 The Apache Software Foundation. All rights reserved.