code: public void createWithDepth(int allowableDepth, TreeGP manager, TGPInitializationStrategy initializationStrategy){
  
        final int constantCount = manager.getConstants().size();
        for(int i=0; i < constantCount; ++i){
           constantSet.add(new Terminal("c" + i, manager.constant(i), manager.constantText(i), true), manager.constantWeight(i));
        }
  
        final int registerCount = manager.getVariableCount();
        for(int i=0; i < registerCount; ++i) {
           variableSet.add(new Terminal("v" + i, 0.0, "", false), 1.0);
        }
  
        final int operatorCount = manager.getOperatorSet().size();
        for(int i=0; i < operatorCount; ++i) {
           Primitive operator = manager.getOperatorSet().get(i);
           operatorSet.add(operator, manager.getOperatorSet().getWeight(i));
        }
  
        root = TreeGenerator.createWithDepth(this, allowableDepth, manager, initializationStrategy);
        calcLength();
        calcDepth();
     }
docs: / <param name="manager">TreeGP config</param