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;
        }
        

}



Designed by hikaru100

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 Cancel

SketchBook5,스케치북5

SketchBook5,스케치북5

SketchBook5,스케치북5

SketchBook5,스케치북5