public void addEntry(double start,int from,int via,int to,double duration){
  List<ScheduleEntry> list=schedules.get(from);
  if (list == null) {
    list=new ArrayList<ScheduleEntry>();
    schedules.put(from,list);
  }
  list.add(new ScheduleEntry(start,from,via,to,duration));
}

public void addEntry ( double start , int from , int via , int to , double duration ) { List < ScheduleEntry > list = schedules . get ( from ) ; if ( list == null ) { list = new ArrayList < ScheduleEntry > ( ) ; schedules . put ( from , list ) ; } list . add ( new ScheduleEntry ( start , from , via , to , duration ) ) ; }
adds a new schedule entry to the oracle
