⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objectivefunctionpanel.java

📁 eclispse下运行 模拟退火算法的java源代码
💻 JAVA
字号:
package org.theblueplanet.annealing.ui;import java.awt.BorderLayout;import javax.swing.JPanel;import org.apache.log4j.Logger;import org.theblueplanet.annealing.AnnealingScheme;/** *  This JPanel contains the ObjectiveFunctionChooser and the LoggerPanel objects * * @author     Charles M間nin * @since    October 29, 2001 * @version    1.0 */public class ObjectiveFunctionPanel extends JPanel {    private static Logger logger = Logger.getLogger("org.theblueplanet.annealing");    /**     *  Constructor for the ObjectiveFunctionPanel object     *     * @param  parent  The AnnealingSchemeFrame     * @param  scheme  The Object that encapsulates the annealing parameters     */    public ObjectiveFunctionPanel(AnnealingSchemeFrame parent, AnnealingScheme scheme) {        super();        logger.debug("Instantiating " + this.getClass().getName());        init(parent, scheme);    }    /**     *  Sets layout and initial parameters     *     * @param  parent  The AnnealingSchemeFrame     * @param  scheme  The Object that encapsulates the annealing parameters     */    private void init(AnnealingSchemeFrame parent, AnnealingScheme scheme) {        try {            this.setLayout(new BorderLayout());            this.add(new ObjectiveFunctionChooser(scheme), BorderLayout.NORTH);            this.add(new LoggerPanel(parent), BorderLayout.CENTER);        } catch (Exception e) {            e.printStackTrace();        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -