|
From: Rudy H. <rud...@gm...> - 2013-06-18 06:49:34
|
Dear Everyone,
I have been tried to create a network topology on top of Alea simulation
case, unfortunately a problem occurred. The problem is related to the
network topology itself. There is a class named "Scheduler" which is
extended from GridSim class, therefore an object from this class could be
attached to the network topology if I initialized a Link object in its
constructor.
Example:
Scheduler (String name, Link link, int xxx)
{
super(name, link)
name = Centralized_scheduler
link = new SimpleLink("Scheduler_Link", baudRate, propDelay, mtu)
}
Then I create a Router object with name "Scheduler_Router which is the
Scheduler object will attached to . When I run the simulation here is the
snippet of the errors:
Scheduler_Router.processNetPacket(): Warning - can't find a packet
scheduler for Packet #1, out of, 1, with id, 0, from,
Output_Centralized_scheduler, to, Resource_10, tag, 6
-> Will reschedule it again in the future.
I have tried to solve this problem by verify the packet scheduler which is
used by the Scheduler_Router, and I clearly have made that one
here is part of my code:
Router schedulerRouter = new RIPRouter("Scheduler_Router",
tracePack);
Router jssRouter = new RIPRouter("JobSubmissionSystem_Router",
tracePack);
FIFOScheduler schedulerFIFO = new FIFOScheduler("Scheduler_FIFO",
baudRate_);
FIFOScheduler jssSched0 = new
FIFOScheduler("JobSubmissionSystem_FIFO0", baudRate_);
schedulerRouter.attachRouter(jssRouter, link1Sched, schedulerFIFO,
jssSched0);
FIFOScheduler schFIFO = new FIFOScheduler("Scheduler_Entity_FIFO",
baudRate_);
schedulerRouter.attachHost(scheduler, schFIFO);
Thank you,
Regards,
Rudy
|