MASON-INTEREST-L Archives

August 2011

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Fri, 19 Aug 2011 23:39:00 -0400
MIME-version:
1.0 (Apple Message framework v936)
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-type:
text/plain; charset=US-ASCII; format=flowed; delsp=yes
Subject:
From:
Sean Luke <[log in to unmask]>
In-Reply-To:
Content-transfer-encoding:
7bit
Parts/Attachments:
text/plain (36 lines)
BTW, by Ladder Queue I presume you mean this:
	http://dl.acm.org/citation.cfm?id=1103324&dl=GUIDE&coll=GUIDE

Sounds like an interesting calendar queue.  Lemme know how the  
performance is when you're done.  If the code's good we might add it  
to MASON.

Note by the way that the key isn't necessarily just the time but also  
the ordering.  Make sure you'll do okay just basing the queue  
decisions on the time alone.

Sean


On Aug 19, 2011, at 5:14 PM, Sean Luke wrote:

> Done.  Version on SVN has the following additional methods in Key:
>
> 		public int getOrdering() { return ordering; }
> 		public double getTime() { return time; }
>
> Sean
>
> On Aug 19, 2011, at 10:10 AM, Sam Brett wrote:
>
>> I am making a scheduler that uses for the heap a ladder queue. For  
>> the
>> ladder queue, however, it needs access to the time for each key.  
>> Currently,
>> the key's time is package scope. Can you put in a getter for time  
>> and while
>> you're at it, I guess ordering as well in the key class? I would  
>> prefer not
>> to copy nearly all the code for the Schedule.
>

ATOM RSS1 RSS2