[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with BatchSwarm and EZGraph
From: |
Paul E Johnson |
Subject: |
Re: Problem with BatchSwarm and EZGraph |
Date: |
Fri, 20 Apr 2001 14:31:52 -0500 |
Marian Mihalo wrote:
>
> Well,
>
> could anybody say me a difference between:
>
> withFeedFrom:[modelSwarm getBugList] andSelector: M(getFoodNumber)];
>
This gets the modelSwarm's bugList and tells that buglist to
"getFoodNumber". If this is the end of a createSequence method, That is
about certain to cause a crash because the bugList does not have a
method getFoodNumber. On the other hand, if it is a
createAverageSequence method, then it does expect a list/collection in
the first argument, and it may work as long as each item in the list has
the method "getFoodNumber"
> and
>
> withFeedFrom:self andSelector: M(getFoodNumber)];
>
> How function is with self, what is returned when I use a "self" etc.?????
This says to the observer swarm itself, "run your getFoodNumber" and it
uses that single value.
Here is what I suggest to you. Compare these two code examples. 1)
Heatbugs, which has createAverageSequence, to graph a summary of a group
of things, and 2) Arborgames, which uses createSequence to graph
individual things, not groups of things.
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
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.