Ejemplo n.º 1
0
        public void TakeSnapShot(int p, int l, int r)
        {
            SortAlgorithmSnapShot shot = GetSnapShot();

            shot.SetPointer("p", p);
            shot.SetPointer("l", l);
            shot.SetPointer("r", r);
            Shots.Add(shot);
        }
Ejemplo n.º 2
0
        public void TakeSnapShot()
        {
            SortAlgorithmSnapShot shot = GetSnapShot();

            shot.SetPointer("p", -1);
            shot.SetPointer("l", -1);
            shot.SetPointer("r", -1);
            Shots.Add(shot);
        }
Ejemplo n.º 3
0
        public QuickSortSnapShotXML(SortAlgorithmSnapShot shot)
        {
            Data = new double[shot.Data.Length];
            shot.Data.CopyTo(Data, 0);

            Colors = new Color[3];
            Colors[0] = new Color("p", (int) shot.Pointers["p"], ColorConstants.Red);
            Colors[1] = new Color("l", (int) shot.Pointers["l"], ColorConstants.Blue);
            Colors[2] = new Color("r", (int) shot.Pointers["r"], ColorConstants.Blue);
        }
Ejemplo n.º 4
0
        public QuickSortSnapShotXML(SortAlgorithmSnapShot shot)
        {
            Data = new double[shot.Data.Length];
            shot.Data.CopyTo(Data, 0);

            Colors    = new Color[3];
            Colors[0] = new Color("p", (int)shot.Pointers["p"], ColorConstants.Red);
            Colors[1] = new Color("l", (int)shot.Pointers["l"], ColorConstants.Blue);
            Colors[2] = new Color("r", (int)shot.Pointers["r"], ColorConstants.Blue);
        }
Ejemplo n.º 5
0
 public void SetSnapShot(SortAlgorithmSnapShot SnapShot)
 {
     SnapShot.SetData(Data);
 }
Ejemplo n.º 6
0
 public void SetSnapShot(SortAlgorithmSnapShot SnapShot)
 {
     SnapShot.SetData(Data);
 }