public TimerTask getAlarm() {
        TimerTask task;

        if(repeating) {
            task = repeatingAlarm();
        } else {
            task = singleAlarm();
        }
        scheduledTask = task;

        return task;
    }