Skip to content

Commit

Permalink
removed dependency of subclasses to instance variable isTreeScaler by…
Browse files Browse the repository at this point in the history
… creating a protected method to provide that information.
  • Loading branch information
alexeid committed Jul 22, 2020
1 parent 06a638d commit 3d38251
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/beast/evolution/operators/ScaleOperator.java
Expand Up @@ -74,7 +74,7 @@ public class ScaleOperator extends Operator {
/**
* flag to indicate this scales trees as opposed to scaling a parameter *
*/
boolean isTreeScaler = true;
private boolean isTreeScaler = true;

@Override
public void initAndValidate() {
Expand All @@ -96,6 +96,10 @@ public void initAndValidate() {
}
}

protected boolean isTreeScaler() {
return isTreeScaler;
}

protected boolean outsideBounds(final double value, final RealParameter param) {
final Double l = param.getLower();
final Double h = param.getUpper();
Expand Down

0 comments on commit 3d38251

Please sign in to comment.