Class Synapse.Builder

  • All Implemented Interfaces:
    Neuron.Builder
    Enclosing class:
    Synapse

    public static class Synapse.Builder
    extends Object
    implements Neuron.Builder
    The Builder class is just a helper class which is used to initialize a neuron. Most of the parameters of this class will be mapped to a input synapse for this neuron.
    Author:
    Lukas Molzberger
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • getSynapseId

        public Integer getSynapseId()
      • setRecurrent

        public Synapse.Builder setRecurrent​(boolean recurrent)
        The property recurrent specifies if input is a recurrent feedback link. Recurrent feedback links can be either negative or positive depending on the weight of the synapse. Recurrent feedback links kind of allow to use future information as inputs of a current neuron. Aika allows this by making assumptions about the recurrent input neuron. The class SearchNode modifies these assumptions until the best interpretation for this document is found.
        Parameters:
        recurrent -
        Returns:
      • setNeuron

        public Synapse.Builder setNeuron​(Neuron neuron)
        Determines the input neuron.
        Parameters:
        neuron -
        Returns:
      • setNeuron

        public Synapse.Builder setNeuron​(INeuron neuron)
        Determines the input neuron.
        Parameters:
        neuron -
        Returns:
      • setWeight

        public Synapse.Builder setWeight​(double weight)
        The synapse weight of this input.
        Parameters:
        weight -
        Returns:
      • getSynapse

        public Synapse getSynapse​(Neuron outputNeuron)