Generated on Fri Oct 6 16:26:42 2006 for Gecode/J by doxygen 1.4.7

ExplorerTest.java

Go to the documentation of this file.
00001 package examples;
00002 
00003 import static org.gecode.Gecode.*;
00004 import static org.gecode.GecodeEnumConstants.*;
00005 
00006 import org.gecode.explorer.*;
00007 
00008 public class ExplorerTest extends Photo implements ExplorerEventListener {
00009     public ExplorerTest(PhotoSpec s) {
00010         super(s);
00011     }
00012     public ExplorerTest(Boolean share, ExplorerTest et) {
00013         super(share, (Photo)et);
00014     }
00015     
00016     public static void main(String[] args) {
00017         ExplorerTest t = new ExplorerTest(new Small());
00018         Explorer e = new Explorer(t, true);
00019         e.openUI();
00020         e.exploreAll();
00021         e.addEventListener(t);
00022     }
00023     
00024     public void nodeClickEvent(Inspector i, SpaceNode s) {
00025         i.inspect("From ExplorerEvent nodeClickEvent:\n" +
00026                            s.getSpace().toString());
00027     }
00028 
00029     public String getName() {
00030         return "ExplorerTest Event Listener";
00031     }
00032 }