Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

ExampleSequenceRequest.java

00001 /*
00002  * ExampleSequenceRequest.java
00003  *
00004  * Created on 14 August 2003, 10:45
00005  */
00006 
00007 package TestGUI;
00008 import Sct_CalibrationController.*;
00009 import Sct_SctApi.*;
00010 import org.omg.CORBA.*;
00011 import org.omg.CosNaming.*;
00012 import org.omg.PortableServer.*;
00013 import org.omg.PortableServer.POA;
00014 import org.omg.CosNaming.NamingContextPackage.*;
00019 public class ExampleSequenceRequest extends SequenceRequestPOA {
00020     
00021     private SctApi api;
00022     private TestRequest responseCurve;
00023     
00024     public ExampleSequenceRequest(CalibrationController cc) {
00025         TestLibrary tl = cc.getTestLibrary();
00026         System.out.println(tl);
00027         responseCurve = tl.responseCurve();
00028     }
00029     
00030     public boolean applyConfigChanges(int index) {
00031         System.out.println("Apply config changes: " + index);
00032         return false;
00033     }    
00034     
00035     public void endSequence() {
00036         System.out.println("end sequence");
00037         api = null;        
00038     }
00039     
00040     public TestRequest getNextTest(int index) {
00041         System.out.println("getNextTest " + index);
00042         
00043         switch(index) {
00044             case 0:
00045                 return responseCurve;
00046             default:
00047                 return null;
00048         }
00049     }
00050     
00051     public String startSequence(SctApi api) {
00052         this.api = api;
00053         return "ExampleSequenceRequest";
00054     }
00055     
00056 }

Generated on Thu Jul 15 09:55:42 2004 for SCT DAQ/DCS Software - Java by doxygen 1.3.5