package uc; import java.io.*; public class SleepTimeUCMsg extends UCMsg { private long time; public SleepTimeUCMsg( long time ) { this.time = time; type = SLEEPTIME; unpacked = true; } SleepTimeUCMsg( byte[] data ) { this.data = data; type = SLEEPTIME; } public long getTime() { unpack(); return time; } public void setCode( long time ) { data = null; this.time = time; } void read( DataInputStream dataIn ) throws IOException { time = dataIn.readLong(); } void write( DataOutputStream dataOut ) throws IOException { dataOut.writeLong( time ); } public void open( UCMessageable processor ) { processor.processMsg( this ); } }