MASON-INTEREST-L Archives

September 2012

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
"Richard O. Legendi" <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Thu, 20 Sep 2012 12:39:09 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
Hi All,

Here's a small issue: when someone schedules something for the time 0.3 
and for the time 0.1 + 0.2, they mean different numbers for sure, so 
scheduled for different times. This way the ordering parameter of the 
schedule method is irrelevant.

Is there a facility to define a delta within which two doubles/floats 
are considered equal in the scheduler?

I took a short look on the Schedule implementation and saw that it 
stores the time definitions within a Key object, but it comapres doubles 
simply by the == operator.

Thanks for any assistance.

Best,
Richard

-- 
Richard O. Legendi
Software developer
Intelligent Applications and Web Services
AITIA International, Inc.
http://people.inf.elte.hu/legendi/

ATOM RSS1 RSS2