Return-Path: william@bourbon.usc.edu Delivery-Date: Thu Sep 18 22:06:49 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m8J56nnL003016 for ; Thu, 18 Sep 2008 22:06:49 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m8J58Nn4030870 for ; Thu, 18 Sep 2008 22:08:23 -0700 Message-Id: <200809190508.m8J58Nn4030870@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: Prj 2 Date: Thu, 18 Sep 2008 22:08:23 -0700 From: Bill Cheng Someone wrote: > If the GetInterval should return an integer in ms then why does the > sample simulation in the project spec have decimal places > > 00000000.000ms: emulation begins > 00000312.112ms: c1 arrives, *inter-arrival time = 312.112ms* > 00000312.117ms: c1 enters Q1 > 00000312.119ms: c1 leaves Q1, time in Q1 = 0.002ms > 00000312.120ms: c1 begin service > 00000625.541ms: c2 arrives, *inter-arrival time = 313.429ms* > 00000625.543ms: c2 enters Q1 > 00000772.497ms: c1 departs, service time = 460.377ms time in system = 460.385ms > 00000772.502ms: c2 leaves Q1, time in Q1 = 146.959ms > 00000772.504ms: c2 begin service > 00000953.672ms: c3 arrives, inter-arrival time = 328.131ms > 00000953.674ms: c3 enters Q1 > 00001217.773ms: c2 departs, service Please see my message with timestamp "Thu 18 Sep 11:05". -- Bill Cheng // bill.cheng@usc.edu On Wed, Sep 17, 2008 at 5:58 PM, Bill Cheng wrote: > Someone wrote: > > > " The return value of GetInterval() should be an integer having a > > unit of milliseconds. To make things easier to manage, we limit > > the value of this integer to be between 1 and 10,000. This means > > that before GetInterval() returns, you must examine the value it > > plans to return. If it's too small, set it to 1, if it's too > > large, set it to 10,000. This also applies to the values you read > > from tsfile. " > > > > Does it mean if rate is 0 must return 10000 and if value > > returned by GetInterval is < 1 then we should return 1? > > Correct! > -- > Bill Cheng // bill.cheng@usc.edu