swarm-support
[Top][All Lists]
Advanced

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

Re: EZGraph Query


From: Paul E Johnson
Subject: Re: EZGraph Query
Date: Mon, 15 Jan 2001 21:15:20 -0600

"Marcus G. Daniels" wrote:
> 
> >>>>> "AC" == Andre Costa <address@hidden> writes:
> 
> AC> It doesn't seem I can use an FCall instance given that EZGraph has
> AC> no methods which take an FCall as an argument...right ?
> 
> It would be nice if someone would implement this, as there currently
> isn't a facility for passing arguments..
> 
I have wanted this too. Until recently, I did not understand a
user-contributed patch is called for in a case like this.   

I propose to do this way, to be more easily usable from the java side
(i.e., no more selector needed).  I want to require that the class
supplying the data have a method like this

- getDataKey: (int) x
{
        imagine a case statement here that gives back whatever data corresponds
with x.  This is, of course, context specific.
}

And then the EZGraph will have a new method, 

- (id <EZSequence>)createSequence: (const char *)aName withFeedFrom:
anObj andDataKey: (int) x;

 
One might guess this would be easy, but as I look at the Swarm source
code, it is not trivial. EZGraph is IMHO somewhat tricky because it is
designed to allow the passing around of selectors (which Java doesn't
allow) and it creates some questions for me to work out.  Nevertheless,
I think I can get it.

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



reply via email to

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