Package org.apache.sysds.hops.fedplanner
Class FederatedMemoTable.FedPlan
- java.lang.Object
-
- org.apache.sysds.hops.fedplanner.FederatedMemoTable.FedPlan
-
- Enclosing class:
- FederatedMemoTable
public static class FederatedMemoTable.FedPlan extends Object
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
Constructors Constructor Description FedPlan(double cumulativeCost, FederatedMemoTable.FedPlanVariants fedPlanVariants, List<org.apache.commons.lang3.tuple.Pair<Long,FEDInstruction.FederatedOutput>> childFedPlans)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.commons.lang3.tuple.Pair<Long,FEDInstruction.FederatedOutput>>
getChildFedPlans()
double
getCumulativeCost()
FEDInstruction.FederatedOutput
getFedOutType()
double
getForwardingCost()
long
getHopID()
Hop
getHopRef()
double
getSelfCost()
double
getWeight()
-
-
-
Constructor Detail
-
FedPlan
public FedPlan(double cumulativeCost, FederatedMemoTable.FedPlanVariants fedPlanVariants, List<org.apache.commons.lang3.tuple.Pair<Long,FEDInstruction.FederatedOutput>> childFedPlans)
-
-
Method Detail
-
getHopRef
public Hop getHopRef()
-
getHopID
public long getHopID()
-
getFedOutType
public FEDInstruction.FederatedOutput getFedOutType()
-
getCumulativeCost
public double getCumulativeCost()
-
getSelfCost
public double getSelfCost()
-
getForwardingCost
public double getForwardingCost()
-
getWeight
public double getWeight()
-
getChildFedPlans
public List<org.apache.commons.lang3.tuple.Pair<Long,FEDInstruction.FederatedOutput>> getChildFedPlans()
-
-