cforster / theme-park-project

An assignment about theme park queues
0 stars 11 forks source link

IllegalArgumentExeption is thrown when adding Ride with same key in drawRideChart #54

Open PsychicNoodles opened 10 years ago

PsychicNoodles commented 10 years ago

The XYSeriesCollection dataset in the drawRideChart method of Park throws an IllegalArgumentException if multiple items in the series array have the same key (the same R:X.XXX:X:XXX key). It should be caught before ticking and the Ride reinitialized.

cforster commented 10 years ago

Wow. Maybe there should be another key--it is theoretically possible for two rides to be the same, right? this might come up more if people make non-random generated rides, as they are considering in #33

On Wed, Oct 30, 2013 at 10:38 AM, PsychicNoodles notifications@github.comwrote:

The XYSeriesCollection dataset in the drawRideChart method of Park throws an IllegalArgumentException if multiple items in the series array have the same key (the same R:X.XXX:X:XXX key). It should be caught and the Ride reinitialized.

— Reply to this email directly or view it on GitHubhttps://github.com/cforster/theme-park-project/issues/54 .