connection.java

来自「一个纯java写的神经网络源代码」· Java 代码 · 共 107 行

JAVA
107
字号
/* * Connection.java * * Created on 21 gennaio 2004, 16.39 */package org.joone.helpers.structure;import org.joone.engine.*;/** * This class represents a container for a Synapse during * the process of transforming a neural network to a  * suitable form for the XML serialization.  * * @see org.joone.joonepad.NeuralNetMatrix * @author  P.Marrone */public class Connection {    Synapse synapse;    int input;    int output;    int inpIndex, outIndex;        public Connection() {    }        /** Getter for property input.     * @return Value of property input.     *     */    public int getInput() {        return input;    }        /** Setter for property input.     * @param input New value of property input.     *     */    public void setInput(int input) {        this.input = input;    }        /** Getter for property output.     * @return Value of property output.     *     */    public int getOutput() {        return output;    }        /** Setter for property output.     * @param output New value of property output.     *     */    public void setOutput(int output) {        this.output = output;    }        /** Getter for property inpIndex.     * @return Value of property inpIndex.     *     */    public int getInpIndex() {        return inpIndex;    }        /** Setter for property inpIndex.     * @param inpIndex New value of property inpIndex.     *     */    public void setInpIndex(int inpIndex) {        this.inpIndex = inpIndex;    }        /** Getter for property outIndex.     * @return Value of property outIndex.     *     */    public int getOutIndex() {        return outIndex;    }        /** Setter for property outIndex.     * @param outIndex New value of property outIndex.     *     */    public void setOutIndex(int outIndex) {        this.outIndex = outIndex;    }        /** Getter for property synapse.     * @return Value of property synapse.     *     */    public Synapse getSynapse() {        return synapse;    }        /** Setter for property synapse.     * @param synapse New value of property synapse.     *     */    public void setSynapse(Synapse synapse) {        this.synapse = synapse;    }    }

⌨️ 快捷键说明

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