/// <summary> /// Deep copy constructor /// </summary> /// <param name="source">Source instance</param> public MackeyGlassGeneratorSettings(MackeyGlassGeneratorSettings source) { Tau = source.Tau; B = source.B; C = source.C; return; }
//Methods /// <summary> /// See the base. /// </summary> public override bool Equals(object obj) { if (obj == null) { return(false); } MackeyGlassGeneratorSettings cmpSettings = obj as MackeyGlassGeneratorSettings; if (Tau != cmpSettings.Tau || B != cmpSettings.B || C != cmpSettings.C ) { return(false); } return(true); }
//Constructor /// <summary> /// Creates an initialized instance /// </summary> /// <param name="settings">Configuration</param> public MackeyGlassGenerator(MackeyGlassGeneratorSettings settings) { _settings = settings.DeepClone(); Reset(); return; }
/// <summary> /// The deep copy constructor. /// </summary> /// <param name="source">The source instance.</param> public MackeyGlassGeneratorSettings(MackeyGlassGeneratorSettings source) : this(source.Tau, source.B, source.C) { return; }
//Constructor /// <summary> /// Creates an initialized instance. /// </summary> /// <param name="cfg">The configuration.</param> public MackeyGlassGenerator(MackeyGlassGeneratorSettings cfg) { _cfg = (MackeyGlassGeneratorSettings)cfg.DeepClone(); Reset(); return; }