00001 package Sct_CalibrationController;
00002
00003
00004
00005
00006
00013 public class TestData extends is.Info {
00014 public static final int EXECUTING = 0;
00015 public static final int COMPLETED = 1;
00016 public static final int ABORTED = 2;
00017
00021 public String testName;
00022
00026 public int runNumber;
00027
00031 public int nScans;
00032
00036 public int startScanNumber;
00037
00041 public short testVariable;
00042
00046 public double[] testPoints;
00047
00050 public int status;
00051
00055 public String startTime;
00056
00060 public String endTime;
00061
00065 public String[] modules;
00066
00070 public int version;
00071
00072
00073 public TestData() {
00074 this( "TestData" );
00075 }
00076
00077 protected TestData( String type ) {
00078 super( type );
00079 status = EXECUTING;
00080 version = 1;
00081
00082
00083
00084
00085 }
00086
00087 public void publishGuts( is.Ostream out ){
00088 super.publishGuts( out );
00089 out.put( testName ).put( runNumber, false ).put( nScans, false ).put( startScanNumber, false );
00090 out.put( testVariable, false ).put( testPoints ).put( status, true ).put( startTime );
00091 out.put( endTime ).put( modules ).put( version, false );
00092 }
00093
00094 public void refreshGuts( is.Istream in ){
00095 super.refreshGuts( in );
00096 testName = in.getString( );
00097 runNumber = in.getInt( );
00098 nScans = in.getInt( );
00099 startScanNumber = in.getInt( );
00100 testVariable = in.getShort( );
00101 testPoints = in.getDoubleArray( );
00102 status = in.getInt( );
00103 startTime = in.getString( );
00104 endTime = in.getString( );
00105 modules = in.getStringArray( );
00106 version = in.getInt( );
00107 }
00108
00109
00110
00111
00112 }
00113
00114
00115
00116
00117