00001 package ServiceInformation;
00002
00003
00004
00005
00006
00013 public class ServiceStatus extends is.Info {
00014
00017 public int done;
00018
00021 public int queue;
00022
00025 public float averageTimeEach;
00026
00029 public float timeLeft;
00030
00031
00032 public ServiceStatus() {
00033 this( "ServiceStatus" );
00034 }
00035
00036 protected ServiceStatus( String type ) {
00037 super( type );
00038 done = 0;
00039 queue = 0;
00040 averageTimeEach = 0f;
00041 timeLeft = 0f;
00042
00043
00044
00045
00046 }
00047
00048 public void publishGuts( is.Ostream out ){
00049 super.publishGuts( out );
00050 out.put( done, false ).put( queue, false ).put( averageTimeEach ).put( timeLeft );
00051 }
00052
00053 public void refreshGuts( is.Istream in ){
00054 super.refreshGuts( in );
00055 done = in.getInt( );
00056 queue = in.getInt( );
00057 averageTimeEach = in.getFloat( );
00058 timeLeft = in.getFloat( );
00059 }
00060
00061
00062
00063
00064 }
00065
00066
00067
00068
00069