Go to back Discovery Lab Rules
import java.io.IOException; import command.Debugger; import parser.DefaultParser; import manager.Manager; public class ClientTestManager extends Manager{ DefaultParser parser; TestStatus status; public ClientTestManager(String key,String i) { super(key,i); parser = new DefaultParser(); super.assignInOutStreamsToParser(parser); status = (TestStatus)super.statusInitialization(new TestStatus("testStatus")); super.setDelay(3000); } @Override public void execute() { try{ parser.write("Writing to device"); }catch (IOException e) { System.out.println(super.getManagerName()+"Manager- Device connection lost. Trying to reconnect"); super.reportConnectionDown(); } Debugger.traceln("Client "+super.getManagerName()+" = "+status.counter); status.counter++; status.setStatusUpdated(true); } @Override public char[] getDeviceSignal() { char[] temp = new char[1]; return temp; } }