01: /**
02: * This file or a portion of this file is licensed under the terms of
03: * the Globus Toolkit Public License, found in file GTPL, or at
04: * http://www.globus.org/toolkit/download/license.html. This notice must
05: * appear in redistributions of this file, with or without modification.
06: *
07: * Redistributions of this Software, with or without modification, must
08: * reproduce the GTPL in: (1) the Software, or (2) the Documentation or
09: * some other similar material which is provided with the Software (if
10: * any).
11: *
12: * Copyright 1999-2004 University of Chicago and The University of
13: * Southern California. All rights reserved.
14: */package org.griphyn.cPlanner.partitioner;
15:
16: import java.util.List;
17:
18: /**
19: * This interface defines the callback calls from the partitioners. The
20: * partitioners call out to the appropriate callback methods as and when they
21: * determine that a partition has been constructed.
22: *
23: *
24: * @author Karan Vahi
25: *
26: * @version $Revision: 50 $
27: */
28:
29: public interface Callback {
30:
31: /**
32: * Callback for when a partitioner determines that partition has been
33: * constructed.
34: *
35: * @param partition the constructed partition.
36: */
37: public void cbPartition(Partition partition);
38:
39: /**
40: * Callback for when a partitioner determines the relations between partitions
41: * that it has previously constructed.
42: *
43: * @param child the id of a partition.
44: * @param parents the list of <code>String</code> objects that contain
45: * the id's of the parents of the partition.
46: */
47: public void cbParents(String child, List parents);
48:
49: /**
50: * Callback for the partitioner to signal that it is done with the processing.
51: *
52: *
53: */
54: public void cbDone();
55:
56: }
|