IWs ws1=new WsImpl(0,"Ws1",null);
IWs ws2=new WsImpl(0,"Ws2",ws1);
IWs ws3=new WsImpl(0,"Ws3",ws2);
//ws1.setBackup(ws3);
IWc wc=new WcImpl(0,"Wc",ws1);
mp.setModel(new IWs[]{wc,ws1,ws2,ws3});
timer=new Timer(true);
timer.scheduleAtFixedRate(new StatusSimulator(mp),5000,5000);