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

ExampleTestRequest.java

00001 /*
00002  * ExampleTestRequest.java
00003  *
00004  * Created on 31 July 2003, 17:07
00005  */
00006 
00007 package TestGUI;
00008 import Sct_CalibrationController.*;
00009 import Sct_SctApi.*;
00010 import GuiComponents.System.*;
00011 import org.omg.CORBA.*;
00012 import org.omg.CosNaming.*;
00013 import org.omg.PortableServer.*;
00014 import org.omg.PortableServer.POA;
00015 import org.omg.CosNaming.NamingContextPackage.*;
00020 public class ExampleTestRequest extends TestRequestPOA{
00021     
00022     private SctApi api;
00023     
00024     public void startTest(SctApi api, StringHolder name, ShortHolder testVariable, IntHolder nScans, TestPointsHolder testPointsData) {
00025         System.out.println("startTest");
00026         this.api = api;
00027         name.value = "ExampleTest";
00028         testVariable.value = 0;
00029         nScans.value = 1;
00030         double [] pts = {10.};
00031         testPointsData.value = pts;
00032         System.out.println("startTest done");
00033     }
00034     
00035     public Sct_CalibrationController.ScanRequest getNextScan(int index) {
00036         System.out.println("getNextScan " + index);
00037         switch (index) {
00038             case 0:
00039                 return SystemInterface.getInstance().getCalibrationController().getScanLibrary().defaultScan();
00040             default:
00041                 return null;
00042         }
00043     }
00044         
00045     public void endTest() {
00046         System.out.println("endTest");
00047         api = null;
00048     }
00049     
00050     public boolean canFeedback() {
00051         return false;
00052     }
00053     
00054 }

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