//Constructor /// <summary> /// Creates an initialized instance. /// </summary> /// <param name="availableFieldNames">The collection of names of all available input fields.</param> /// <param name="cfg">The configuration.</param> public MulTransformer(List <string> availableFieldNames, MulTransformerSettings cfg) { _cfg = (MulTransformerSettings)cfg.DeepClone(); _xFieldIdx = availableFieldNames.IndexOf(_cfg.XInputFieldName); _yFieldIdx = availableFieldNames.IndexOf(_cfg.YInputFieldName); return; }
//Constructor /// <summary> /// Creates an initialized instance /// </summary> /// <param name="availableFieldNames">Collection of names of all available input fields</param> /// <param name="settings">Configuration</param> public MulTransformer(List <string> availableFieldNames, MulTransformerSettings settings) { _settings = (MulTransformerSettings)settings.DeepClone(); _xFieldIdx = availableFieldNames.IndexOf(_settings.XInputFieldName); _yFieldIdx = availableFieldNames.IndexOf(_settings.YInputFieldName); return; }
/// <summary> /// Deep copy constructor /// </summary> /// <param name="source">Source instance</param> public MulTransformerSettings(MulTransformerSettings source) : this(source.XInputFieldName, source.YInputFieldName) { return; }