swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ptplot and swarm-java


From: Marcus G. Daniels
Subject: Re: ptplot and swarm-java
Date: 30 Dec 2000 19:31:44 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "PJ" == Paul E Johnson <address@hidden> writes:

PJ> Can Objective-C programs access classes written in Java?

Objective C programs can make Java calls through FCall.  I experimented
with making [jobj someJavaMethodName] work, but hooking objc_msg_lookup
with foreign language checks was slow and caused other problems.

MD> Typically,
MD> you'd pass interfaces around, knowing that certain methods would be
MD> there by virtue of the typing.

PJ> I think I got it.  The grapher class would expect the class
PJ> offering the data would have:

PJ>  public double getOutputData (int x)

PJ> x tells the passer which data stream to provide.  A grapher like a
PJ> scatterplot would have to accept 2 data streams.

If there are just two, you might prefer to have two methods, to avoid
misuse.  (e.g. passing an `x' greater than 1).

PJ> THis all presupposes I prepare java class objects from scratch,
PJ> not using ptplot, because of licensing, correct? 

I don't recall what the licensing was on ptplot, wasn't it GPL or more
liberal?

                  ==================================
   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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]