Skip to content

Commit

Permalink
save TODO #109
Browse files Browse the repository at this point in the history
  • Loading branch information
walterxie committed Jan 16, 2024
1 parent 2d2aaaf commit 52ae3fe
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
*/
public class DefaultOperatorStrategy implements OperatorStrategy {

private final BEASTContext context;
// store all <f idref= /> inside each AVMNOperator,
// which maps to each data partition (tree likelihood) in beast.
protected Map<StateNode, String> idrefAVMNN = new HashMap<>();

protected final BEASTContext context;

/**
* @param context passing all configurations
Expand Down Expand Up @@ -81,8 +85,11 @@ public List<Operator> createOperators() {
List<Operator> operators = new ArrayList<>();

for (BEASTInterface beastInterface : context.getBeastObjForOpSamplers()) {
if (beastInterface instanceof AdaptableVarianceMultivariateNormalOperator opAVMNN)
if (beastInterface instanceof AdaptableVarianceMultivariateNormalOperator opAVMNN) {
operators.add(opAVMNN);

// TODO fill in Map<StateNode, String> idrefAVMNN, value is opAVMNN.getID()
}
}

Set<StateNode> skipOperators = context.getSkipOperators();
Expand Down

0 comments on commit 52ae3fe

Please sign in to comment.