[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Building bugDisplay in simpleObserverBug
From: |
Fred Wan |
Subject: |
Building bugDisplay in simpleObserverBug |
Date: |
Wed, 13 Sep 2000 21:47:19 +0200 |
(wrong subject in previous message, sorry).
Hi
I have trouble understanding the following fragment in SimpleObserverBug and
translating it to Java. Can someone help me out here? Especially the
M(drawSelfOn) is puzzling. In jheatbugs a message is sent to a heatbug
object that then draws itself, but what happens here is unclear.
Thanks,
Fred Wan,
dept. Artificial Intelligence,
Vrije Universiteit Amsterdam,
The Netherlands.
bugDisplay = [Object2dDisplay createBegin: self];
[bugDisplay setDisplayWidget: worldRaster];
[bugDisplay setDiscrete2dToDisplay: [modelSwarm getWorld]];
[bugDisplay setObjectCollection: [modelSwarm getBugList]];
[bugDisplay setDisplayMessage: M(drawSelfOn:)]; // draw method
bugDisplay = [bugDisplay createEnd];
-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of Marcus G. Daniels
Sent: Wednesday, September 13, 2000 5:01 PM
To: address@hidden
Subject: Re: Graph and GraphElement in Java
>>>>> "MB" == Marie-Edith Bissey <address@hidden> writes:
MB> In an experiment written for Swarm in ObjectiveC, I am using the
MB> Graph and GraphElement classes in order to represent graphically
MB> the results of the simulation. I would like to "translate" this
MB> program using javaSwarm, but cannot find any Graph classes in
MB> Java. The documentation makes me think these classes are actually
MB> not implemented in javaSwarm. In this case, what is the
MB> alternative?
The `gui' interfaces are available if you really want them, but
you need to rebuild Swarm from source with a few changes.¹
Instead, I would suggest you go to www.jars.com and search for "plot".
`ptplot' is one that I know works.
¹ The variable *removed-protocols* in java-stub.el (or interface.el
in the snapshot sources) is a list of all the protocols that are taken
out of the Swarm/Java layer. Simply remove the lines you want back and
do a new build/install.
==================================
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.
==================================
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.
- Graph and GraphElement in Java, Marie-Edith Bissey, 2000/09/13
- Re: Graph and GraphElement in Java, Marcus G. Daniels, 2000/09/13
- RE: Graph and GraphElement in Java, Fred Wan, 2000/09/13
- Building bugDisplay in simpleObserverBug,
Fred Wan <=
- Re: Graph and GraphElement in Java, Marie-Edith Bissey, 2000/09/14
- Re: Graph and GraphElement in Java, Marcus G. Daniels, 2000/09/14
- Re: Graph and GraphElement in Java, Marie-Edith Bissey, 2000/09/20
- Re: Graph and GraphElement in Java, Marcus G. Daniels, 2000/09/20
- Re: Graph and GraphElement in Java, Marie-Edith Bissey, 2000/09/21
- Re: Graph and GraphElement in Java, Marcus G. Daniels, 2000/09/21
- Re: Graph and GraphElement in Java, Juan A Rodriguez, 2000/09/21
- Using ptplot in javaSwarm (was Graph and GraphElement in Java), Marie-Edith Bissey, 2000/09/22
- Re: Using ptplot in javaSwarm (was Graph and GraphElement in Java), Marcus G. Daniels, 2000/09/22