public void changeState(EventSensorState event) {
        if (event.getId() == this.id) {
            boolean enter = event.isSensorlvl();
            if (enter) {
//            	if(lokEntering!=null) {
                lokIn = lokEntering;
                //Have to be changed to systemout in a event
                System.out.println(this + "entering");
                lokEntering = null;
//            	}
            } else {
                if (lokIn != null) {
                    if (lokIn.isDirection()) {
                        for (Track track : next) {
                            track.lokEntering = lokIn;
                        }
                        //Have to be changed to systemout in a event
                        lokIn = null;
                    } else {
                        for (Track track : next) {
                            track.lokEntering = lokIn;
                        }
                        lokIn = null;
                    }
                }
                System.out.println(this + "exit");
            }
        }
    }