hello
I am trying to execute network/example03 with few modifications i.e., i am
reading number of resources for each user as input from console and trying
to run the gridsimsimulation. But i am getting the following error:
Starting GridSim version 5.0
Entities started.
Output_User_0: background traffic will start at time 14
Output_User_1: background traffic will start at time 18
Exception in thread "Res_0" java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.get(ArrayList.java:324)
at eduni.simjava.Sim_system.send(Sim_system.java:616)
at eduni.simjava.Sim_entity.sim_schedule(Sim_entity.java:373)
at gridsim.GridSimCore.send(Unknown Source)
at gridsim.GridResource.body(Unknown Source)
at eduni.simjava.Sim_entity.run(Sim_entity.java:605)
Any help in this regard is highly appreciated.
Thanks,
Vinaya
|