public class HopRel extends Object
Constructor and Description |
---|
HopRel(Hop associatedHop,
FEDInstruction.FederatedOutput fedOut,
Map<Long,List<HopRel>> hopRelMemo)
Constructs a HopRel with input dependency and cost estimate based on entries in hopRelMemo.
|
Modifier and Type | Method and Description |
---|---|
void |
addCostPointer(long hopID)
Adds hopID to set of hops pointing to this HopRel.
|
boolean |
existingCostPointer(long currentHopID)
Checks if another Hop is refering to this HopRel in memo table.
|
double |
getCost()
Get total cost as double
|
FederatedCost |
getCostObject()
Get cost object
|
FEDInstruction.FederatedOutput |
getFederatedOutput() |
Hop |
getHopRef() |
List<HopRel> |
getInputDependency() |
boolean |
hasFederatedOutput() |
boolean |
hasLocalOutput() |
String |
toString() |
public HopRel(Hop associatedHop, FEDInstruction.FederatedOutput fedOut, Map<Long,List<HopRel>> hopRelMemo)
associatedHop
- hop associated with this HopRelfedOut
- FederatedOutput value assigned to this HopRelhopRelMemo
- memo table storing other HopRels including the inputs of associatedHoppublic void addCostPointer(long hopID)
hopID
- added to set of stored cost pointerspublic boolean existingCostPointer(long currentHopID)
currentHopID
- to ignore when checking referencespublic boolean hasLocalOutput()
public boolean hasFederatedOutput()
public FEDInstruction.FederatedOutput getFederatedOutput()
public Hop getHopRef()
public double getCost()
public FederatedCost getCostObject()
Copyright © 2021 The Apache Software Foundation. All rights reserved.