00001 package Sct_CalibrationController;
00002
00003
00004
00005
00006
00013 public class CalibrationControllerStatus extends is.Info {
00014 public static final int LOADED = 0;
00015 public static final int INCONTROL = 1;
00016 public static final int BUSY = 2;
00017 public static final int ERROR = 3;
00018
00021 public int status;
00022
00025 public String updateOption;
00026
00029 public String currentSequence;
00030
00033 public String currentTest;
00034
00037 public int currentScanIndex;
00038
00039
00040 public CalibrationControllerStatus() {
00041 this( "CalibrationControllerStatus" );
00042 }
00043
00044 protected CalibrationControllerStatus( String type ) {
00045 super( type );
00046 status = LOADED;
00047 updateOption = "UPDATE";
00048
00049
00050
00051
00052 }
00053
00054 public void publishGuts( is.Ostream out ){
00055 super.publishGuts( out );
00056 out.put( status, true ).put( updateOption ).put( currentSequence ).put( currentTest );
00057 out.put( currentScanIndex, false );
00058 }
00059
00060 public void refreshGuts( is.Istream in ){
00061 super.refreshGuts( in );
00062 status = in.getInt( );
00063 updateOption = in.getString( );
00064 currentSequence = in.getString( );
00065 currentTest = in.getString( );
00066 currentScanIndex = in.getInt( );
00067 }
00068
00069
00070
00071
00072 }
00073
00074
00075
00076
00077