Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.planner.config.phase;
 
public abstract class SolverPhaseConfig {
    // Warning: all fields are null (and not defaulted) because they can be inherited
    // and also because the input config file should match the output config file
    @XStreamAlias("termination")
        return ;
    }
    public void setTerminationConfig(TerminationConfig terminationConfig) {
        this. = terminationConfig;
    }
    // ************************************************************************
    // Builder methods
    // ************************************************************************
    public abstract SolverPhase buildSolverPhase(EnvironmentMode environmentModeSolutionDescriptor solutionDescriptor,
            ScoreDefinition scoreDefinitionTermination solverTermination);
    protected void configureSolverPhase(AbstractSolverPhase solverPhase,
            EnvironmentMode environmentModeScoreDefinition scoreDefinitionTermination solverTermination) {
        solverPhase.setTermination(.buildTermination(scoreDefinition,
                new PhaseToSolverTerminationBridge(solverTermination)));
    }
    public void inherit(SolverPhaseConfig inheritedConfig) {
        if ( == null) {
             = inheritedConfig.getTerminationConfig();
        } else if (inheritedConfig.getTerminationConfig() != null) {
            .inherit(inheritedConfig.getTerminationConfig());
        }
    }
New to GrepCode? Check out our FAQ X