package edu.cornell.lassp.houle.HysSym;
import java.util.*;

/**
* <b>AvalancheConsumer</b> is an interface that receives avalanche data from
* a simulation such as <b>HysLattice.</b>  For an example implementation
* see <b>HysCanvas.</b>
*
* <P>
* <A HREF="../src/edu/cornell/lassp/houle/HysSym/AvalancheConsumer.java" TARGET="edu.cornell.lassp.houle.source">
* Source code </A> is available.
*
* @see HysLattice
* @see HysCanvas
* @see CellIndex
*
* @author <A HREF="http://www.msc.cornell.edu/~houle" TARGET="edu.cornell.lassp.houle.author"> Paul Houle </A> (E-mail: <A HREF="mailto:ph18@cornell.edu">ph18@cornell.edu</A>)
* @version 0.9a
*/

public interface AvalancheConsumer {

/**
*
* receive avalanche data
*
* @param avalanche a <b>Vector</b> of <b>CellIndex</b> listing the cells participating in
* the avalanche.
*
* @param direction the direction (+1 or -1) towards which spins flipped.
*
*/
	public void receiveAvalanche(Vector avalanche,int direction);
};
