public  void start() {
        ticketService = TicketService.getInstance();
        form = new MainForm();
        t = new Thread(new Runnable() {
            @Override
            public void run() {

                while (true) {
                    if (Model.isSumulatingRun && Model.isOpenDoor && Model.countOfPeopleInHour != 0) {

                        synchronized (t) {
                            try {
                                Double time = nextdt();

                                if (time >= 1)
                                    t.wait(time.longValue(), Double.valueOf(time - time.longValue()).intValue() );
                                // Thread.sleep(nextdt().longValue());  не корректно работает при смене аргумента
                            } catch (InterruptedException e) {
                                e.printStackTrace();
                            }

                        }
                        createAndHandlePeople();

//


                    }
                }

            }
        });
        t.start();

//
    }