[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: easier way to monitor a sequence from ezgraph?
From: |
Marcus G. Daniels |
Subject: |
Re: easier way to monitor a sequence from ezgraph? |
Date: |
10 Jan 2002 14:29:14 -0700 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7 |
>>>>> "PJ" == Paul E Johnson <address@hidden> writes:
PJ> Anyway, I create a sequence and probe into it to get the
PJ> averager object out of it
Ivars internal to Swarm can change at any time, so I'd say you're
asking for trouble by doing that.
PJ> If not, what would be the objections against me digging
PJ> into the Swarm source and adding an IVAR to any sequence called
PJ> "currentValue" or something and a method "getCurrent" to retrieve it?
A getCurrentValue seems like it could be useful (that both EZSequence
and EZAverageSequence would return). Don't add an ivar if it is not
needed, though.
PJ> If you wanted a simulation to end when the average is 0, how
PJ> likely with there be trouble if I compare a double against 0:
PJ> if ([nchanges getAverage] == 0)
Why not be clear and use "< DBL_MIN"? (Assuming getAverage is a double.)
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.