Package org.apache.sysds.hops.fedplanner
Class FederatedMemoTable.FedPlan
java.lang.Object
org.apache.sysds.hops.fedplanner.FederatedMemoTable.FedPlan
- Enclosing class:
- FederatedMemoTable
Represents a single federated execution plan with its associated costs and
dependencies.
This class contains:
1. selfCost: Cost of the current hop (computation + input/output memory
access).
2. cumulativeCost: Total cost including this plan's selfCost and all child
plans' cumulativeCost.
3. forwardingCost: Network transfer cost for this plan to the parent plan.
FedPlan is linked to FedPlanVariants, which in turn uses HopCommon to manage
common properties and costs.
-
Constructor Summary
ConstructorsConstructorDescriptionFedPlan(double cumulativeCost, FederatedMemoTable.FedPlanVariants fedPlanVariants, List<org.apache.commons.lang3.tuple.Pair<Long, FEDInstruction.FederatedOutput>> childFedPlans) -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.commons.lang3.tuple.Pair<Long,FEDInstruction.FederatedOutput>> doublegetChildForwardingWeight(List<org.apache.commons.lang3.tuple.Pair<Long, Double>> childLoopContext) doubledoubledoubledoubledoublelonggetHopID()doubledoublevoidsetFederatedOutput(FEDInstruction.FederatedOutput fedOutType) voidsetForcedExecType(Types.ExecType execType)
-
Constructor Details
-
FedPlan
public FedPlan(double cumulativeCost, FederatedMemoTable.FedPlanVariants fedPlanVariants, List<org.apache.commons.lang3.tuple.Pair<Long, FEDInstruction.FederatedOutput>> childFedPlans)
-
-
Method Details
-
getHopRef
-
getHopID
public long getHopID() -
getFedOutType
-
getCumulativeCost
public double getCumulativeCost() -
getCumulativeCostPerParents
public double getCumulativeCostPerParents() -
getSelfCost
public double getSelfCost() -
getForwardingCost
public double getForwardingCost() -
getForwardingCostPerParents
public double getForwardingCostPerParents() -
getComputeWeight
public double getComputeWeight() -
getNetworkWeight
public double getNetworkWeight() -
getChildForwardingWeight
-
getLoopContext
-
getChildFedPlans
public List<org.apache.commons.lang3.tuple.Pair<Long,FEDInstruction.FederatedOutput>> getChildFedPlans() -
setFederatedOutput
-
setForcedExecType
-