[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Writing about probeDisplays: what do you think?
From: |
Paul Johnson |
Subject: |
Re: Writing about probeDisplays: what do you think? |
Date: |
Thu, 27 May 1999 16:43:39 -0500 |
Thanks for the answers. Now tell me this
"glen e. p. ropella" wrote:
>
> And don't forget the shortcut method for designing a custom
> probemap.
>
> e.g.
> ------------------------
> probeMap = [CustomProbeMap create: aZone forClass: [self class]
> withIdentifiers: "membership",
> "factValue", "coercionValue",
> "socialPressureValue",":",
> "setMembershipTo:", NULL];
> [probeLibrary setProbeMap: probeMap For: [self class]];
> -------------------------
>
> glen
>
How could I forget about this when I never heard of it before? Answer me
that!
Are the things in parentheses the names of instance variables in the
object where this command is run?
If so, OK for me, except I don't understand
1) the ,":" on line 4.
My guess is it is a separator between var probes and message probes.
Good?
2), NULL in last item.
If my other guess is correct, I wonder why this is not "nil"
instead of "null"???
Suppse we have HeatbugModelSwarm, currently it is:
probeMap = [EmptyProbeMap createBegin: aZone];
[probeMap setProbedClass: [self class]];
probeMap = [probeMap createEnd];
[probeMap addProbe: [probeLibrary getProbeForVariable: "numBugs"
inClass: [self class]]];
[probeMap addProbe: [probeLibrary getProbeForVariable:
"diffuseConstant"
inClass: [self class]]];
[probeMap addProbe: [probeLibrary getProbeForVariable: "worldXSize"
inClass: [self class]]];
[probeMap addProbe: [probeLibrary getProbeForVariable: "worldYSize"
inClass: [self class]]];
[probeMap addProbe: [probeLibrary getProbeForVariable: "minIdealTemp"
inClass: [self class]]];
[probeMap addProbe: [probeLibrary getProbeForVariable: "maxIdealTemp"
inClass: [self class]]];
[probeMap addProbe: [probeLibrary getProbeForVariable: "minOutputHeat"
inClass: [self class]]];
[probeMap addProbe: [probeLibrary getProbeForVariable: "maxOutputHeat"
inClass: [self class]]];
[probeMap addProbe: [probeLibrary getProbeForVariable:
"evaporationRate"
inClass: [self class]]];
[probeMap addProbe: [probeLibrary getProbeForMessage:
"toggleRandomizedOrder"
inClass: [self class]]];
[probeMap addProbe: [probeLibrary getProbeForVariable:
"randomMoveProbability"
inClass: [self class]]];
[probeMap addProbe: [[probeLibrary getProbeForMessage: "addHeatbug:"
inClass: [self class]]
setHideResult: 1]];
[probeLibrary setProbeMap: probeMap For: [self class]];
------------------------
Using the custom probemap, what would this be?????? As you see, I
only can guess at the obvious part:
probeMap = [CustomProbeMap create: aZone forClass: [self class]
withIdentifiers: "numbugs",
"diffuseConstant", "worldXSize",
"worldYSize","minIdealTemp",
"maxIdealTemp","minOutputHeat",
"maxOutputHeat", "evaporationRate",
"toggleRandomizedOrder"
"randomMoveProbability",":",
"addHeatbug:", NULL];
But there's no way to add setHideResult: 1 here, so one price of the
Custom Probe Map is lack of detail?
--
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.