Example #1
0
        DBNote AddToFuncDB(string key, List <List <bool> > funcMatrix)
        {
            var CM   = GetCorMatrix(funcMatrix);
            var DM   = GetDifMatrix(funcMatrix);
            var Note = new DBNote(funcMatrix, CM, DM);

            FuncDB.Add(key, Note);
            return(Note);
        }
Example #2
0
 public DBNote(DBNote N)
 {
     this.DStates    = N.DStates;
     this.LStates    = N.LStates;
     this.FuncMatrix = new List <List <bool> >(N.FuncMatrix.Count);
     this.CorMatrix  = new List <List <short> >(N.CorMatrix.Count);
     this.DifMatrix  = new List <List <short> >(N.DifMatrix.Count);
     //             for (int i = 0; i < N.FuncMatrix.Count; i++)
     //             {
     //                 this.FuncMatrix.Add(new List<bool>(N.FuncMatrix[i]));
     //             }
     //             for (int i = 0; i < N.CorMatrix.Count; i++)
     //             {
     //                 this.CorMatrix.Add(new List<short>(N.CorMatrix[i]));
     //
     //             }
     //             for (int i = 0; i < N.DifMatrix.Count; i++)
     //             {
     //                 this.DifMatrix.Add(new List<short>(N.DifMatrix[i]));
     //             }
     this.FuncMatrix = N.FuncMatrix;
     this.CorMatrix  = N.CorMatrix;
     this.DifMatrix  = N.DifMatrix;
 }