use of pcgen.base.solver.DynamicSolverManager in project pcgen by PCGen.
the class PlayerCharacter method doFormulaSetup.
private void doFormulaSetup(LoadContext context) {
SplitFormulaSetup formulaSetup = formulaSetupFacet.get(id.getDatasetID());
MonitorableVariableStore varStore = new MonitorableVariableStore();
IndividualSetup mySetup = new IndividualSetup(formulaSetup, "Global", varStore);
scopeFacet.set(id, mySetup.getInstanceFactory());
variableStoreFacet.set(id, varStore);
SolverFactory solverFactory = solverFactoryFacet.get(id.getDatasetID());
solverManagerFacet.set(id, new DynamicSolverManager(mySetup.getFormulaManager(), context.getVariableContext().getManagerFactory(), solverFactory, varStore));
}
Aggregations