Exemple #1
0
 //Constructors
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="inputSynCfg">The configuration of an input synapse.</param>
 /// <param name="excitatorySynCfg">The configuration of an excitatory synapse.</param>
 /// <param name="inhibitorySynCfg">The configuration of an inhibitory synapse.</param>
 public SynapseSTSettings(SynapseSTInputSettings inputSynCfg           = null,
                          SynapseSTExcitatorySettings excitatorySynCfg = null,
                          SynapseSTInhibitorySettings inhibitorySynCfg = null
                          )
 {
     InputSynCfg      = inputSynCfg == null ? new SynapseSTInputSettings() : (SynapseSTInputSettings)inputSynCfg.DeepClone();
     ExcitatorySynCfg = excitatorySynCfg == null ? new SynapseSTExcitatorySettings() : (SynapseSTExcitatorySettings)excitatorySynCfg.DeepClone();
     InhibitorySynCfg = inhibitorySynCfg == null ? new SynapseSTInhibitorySettings() : (SynapseSTInhibitorySettings)inhibitorySynCfg.DeepClone();
     Check();
     return;
 }
 /// <summary>
 /// The deep copy constructor.
 /// </summary>
 /// <param name="source">The source instance.</param>
 public SynapseSTExcitatorySettings(SynapseSTExcitatorySettings source)
     : this(source.DelayMethod, source.MaxDelay, source.RelShare, source.AnalogSourceCfg, source.SpikingSourceCfg)
 {
     return;
 }