From: <bro...@us...> - 2008-02-26 04:44:00
|
Revision: 130 http://gridsim.svn.sourceforge.net/gridsim/?rev=130&view=rev Author: brobergj Date: 2008-02-25 20:44:05 -0800 (Mon, 25 Feb 2008) Log Message: ----------- *Minor changes Modified Paths: -------------- branches/gridsim4.0-branch2/source/gridsim/net/flow/FlowPacket.java Modified: branches/gridsim4.0-branch2/source/gridsim/net/flow/FlowPacket.java =================================================================== --- branches/gridsim4.0-branch2/source/gridsim/net/flow/FlowPacket.java 2008-02-26 04:40:33 UTC (rev 129) +++ branches/gridsim4.0-branch2/source/gridsim/net/flow/FlowPacket.java 2008-02-26 04:44:05 UTC (rev 130) @@ -35,7 +35,7 @@ private double bandwidth_; // Bottleneck baud rate private int bottleneckID; // Bottleneck link ID - + private Vector baudRates_; // list of entity's baud rate on path from source to dest private Vector links_; // list of entity's links on path from source to dest @@ -372,6 +372,17 @@ public double getLatency() { return latency; } + + /** + * Sets the current latency over the path from source to dest. + * + * param latency + * @pre $none + * @post $none + */ + public void setLatency(double latency) { + this.latency = latency; + } /** * Adds to the current sum of latency over the path from source to dest. @@ -538,7 +549,7 @@ } /** - * ets the FlowLink ID of the bottleneck of this flow + * Sets the FlowLink ID of the bottleneck of this flow * * param bottleneckID the ID of the bottleneck FlowLink * @pre $none @@ -548,5 +559,20 @@ this.bottleneckID = bottleneckID; } + /** + * Sets the source ID for a FlowPacket + * + * param srcID the id of the source of this flow + * @pre $none + * @post $none + */ + public void setSrcID(int srcID) { + this.srcID = srcID; + } + + public void setTag(int tag) { + this.tag = tag; + } + } // end class This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |