//Constructors
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="delayMethod">The synaptic delay method.</param>
 /// <param name="maxDelay">The maximum synaptic delay.</param>
 /// <param name="relShare">The relative share.</param>
 /// <param name="analogSourceCfg">The configuration of the synapse connecting analog presynaptic neuron.</param>
 /// <param name="spikingSourceCfg">The configuration of the synapse connecting spiking presynaptic neuron.</param>
 public SynapseSTExcitatorySettings(Synapse.SynapticDelayMethod delayMethod = DefaultDelayMethod,
                                    int maxDelay    = DefaultMaxDelay,
                                    double relShare = DefaultRelShare,
                                    AnalogSourceSettings analogSourceCfg = null,
                                    SpikingSourceSTExcitatorySettings spikingSourceCfg = null
                                    )
 {
     DelayMethod      = delayMethod;
     MaxDelay         = maxDelay;
     RelShare         = relShare;
     AnalogSourceCfg  = analogSourceCfg == null ? new AnalogSourceSettings() : (AnalogSourceSettings)analogSourceCfg.DeepClone();
     SpikingSourceCfg = spikingSourceCfg == null ? new SpikingSourceSTExcitatorySettings() : (SpikingSourceSTExcitatorySettings)spikingSourceCfg.DeepClone();
     Check();
     return;
 }
Esempio n. 2
0
 //Constructors
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="delayMethod">Specifies how to decide synaptic delay</param>
 /// <param name="maxDelay">Maximum delay of the signal</param>
 /// <param name="analogSourceCfg">Configuration of synapse having analog source neuron</param>
 /// <param name="spikingSourceCfg">Configuration of synapse having spiking source neuron</param>
 public SynapseATIndifferentSettings(Synapse.SynapticDelayMethod delayMethod = DefaultDelayMethod,
                                     int maxDelay = DefaultMaxDelay,
                                     AnalogSourceSettings analogSourceCfg = null,
                                     SpikingSourceATIndifferentSettings spikingSourceCfg = null
                                     )
 {
     DelayMethod      = delayMethod;
     MaxDelay         = maxDelay;
     AnalogSourceCfg  = analogSourceCfg == null ? new AnalogSourceSettings() : (AnalogSourceSettings)analogSourceCfg.DeepClone();
     SpikingSourceCfg = spikingSourceCfg == null ? new SpikingSourceATIndifferentSettings() : (SpikingSourceATIndifferentSettings)spikingSourceCfg.DeepClone();
     Check();
     return;
 }