Revision: 133
http://gridsim.svn.sourceforge.net/gridsim/?rev=133&view=rev
Author: brobergj
Date: 2008-02-25 20:48:35 -0800 (Mon, 25 Feb 2008)
Log Message:
-----------
*Removed flow ack code, as it is handled in FlowBuffer now on our behalf
Modified Paths:
--------------
branches/gridsim4.0-branch2/examples/FlowNetEx01/FlowTest.java
Modified: branches/gridsim4.0-branch2/examples/FlowNetEx01/FlowTest.java
===================================================================
--- branches/gridsim4.0-branch2/examples/FlowNetEx01/FlowTest.java 2008-02-26 04:47:39 UTC (rev 132)
+++ branches/gridsim4.0-branch2/examples/FlowNetEx01/FlowTest.java 2008-02-26 04:48:35 UTC (rev 133)
@@ -58,7 +58,8 @@
public FlowTest(String name, String destName) throws Exception
{
- super(name, new FlowLink(name+"_link",10485760,250, Integer.MAX_VALUE));
+ // 10,485,760 baud = 10Mb/s
+ super(name, new FlowLink(name+"_link",10485760,250,Integer.MAX_VALUE));
// get this entity name from Sim_entity
this.name_ = super.get_name();
@@ -107,14 +108,8 @@
write(super.get_name() + ".body(): receive " +
ev.get_data() + ", at time = " + GridSim.clock());
- // sends back an ack
- IO_data data = new IO_data(ev.get_data(), packetSize, destID_);
- write(name_ + ".body(): Sending back " +
- ev.get_data() + ", at time = " + GridSim.clock() );
-
- // sends through Output buffer of this entity
- super.send(super.output, GridSimTags.SCHEDULE_NOW,
- GridSimTags.FLOW_RETURN , data);
+ // No need for an ack, it is handled in FlowBuffer now on our behalf
+
}
// handle a ping requests. You need to write the below code
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|