/// <summary> /// Adds a data set and its factor/factor assignments to the tree-hash structure. /// </summary> /// <param name="dataName">Dataset name</param> /// <param name="factors">Hashtable of factors. Factor name is key, factor value is value.</param> public void AddData(string dataName, Hashtable factors) { var newData = new clsFactorDataset(dataName, factors); long index = m_datasetList.Add(newData); newData.Index = index; m_treeDirty = true; }
public object Clone() { var newTable = new Hashtable(); foreach (var o in m_factorKeys.Keys) { newTable.Add(o, m_factorKeys[o]); } var newData = new clsFactorDataset(Name, newTable); newData.Name = Name; newData.Index = Index; return newData; }