/******************************************************************************
    Sort data for obervables to pass to observers.
    
----------------------------------------------------
Copyright (c) Gunnar Gotshalks. All Rights Reserved.

Permission to use, copy, modify, and distribute this software
and its documentation for NON-COMMERCIAL purposes and
without fee is hereby granted. 
*******************************************************************************/

package FlexOr.searchAndSort;

import java.awt.*;

/** Data to be passed to observers of array sort algorithms. */

public class SortObsData {

/** True if items are to be swapped;  False if items are only compared. */
  public boolean swap;

/** Register the color for each array element */
  public Color[] tag;  

/** Register the end of observation data. */
  public boolean endOfData = false;
  
  public SortObsData(int size) {
    tag = new Color[size];
    for (int i = 0 ; i < tag.length ; i++) {
      tag[i] = Color.gray;
    }
  }  
}