Exemplo n.º 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;
 }
Exemplo n.º 2
0
 /// <summary>
 /// The deep copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public SynapseSTInputSettings(SynapseSTInputSettings source)
     : this(source.DelayMethod, source.MaxDelay, source.AnalogSourceCfg, source.SpikingSourceCfg)
 {
     return;
 }