Beispiel #1
0
 static public DataFormater getDataFormater()
 {
     if (onlyone == null)
     {
         onlyone = new DataFormater();
     }
     return(onlyone);
 }
Beispiel #2
0
        private readonly int correctstrategy_timespan = 100; //10 毫秒

        private DotManager()
        {
            correctitems = new List <CorrectItem>();

            PhyCombine.GetPhyCombine().onPacketReceived(DataFormater.getDataFormater().PacketReceviedHdlr);

            DataFormater.getDataFormater().onPacketCheckError(PacketCheckErrorHdlr);
            DataFormater.getDataFormater().onPacketCorrected(PacketCorrectedHdlr);
            DataFormater.getDataFormater().onPacketRecevied(PacketReceviedHdlr);

            PhyCombine.GetPhyCombine().onCombineError(CombineErrorHdlr);
        }
Beispiel #3
0
 public Collection <ADot> GetDots()
 {
     return(DataFormater.getDataFormater().GetDots());
 }
Beispiel #4
0
 //清空Dots,rawText所有数据
 public void ReleaseData()
 {
     DataFormater.getDataFormater().GetDots().Clear();
     PhyCombine.GetPhyCombine().Clear();
 }