swarm-support
[Top][All Lists]
Advanced

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

Re: Strings and Probes


From: Rick Riolo
Subject: Re: Strings and Probes
Date: Tue, 2 Nov 1999 06:50:37 -0500 (EST)

Doug,

This works for me--in the @interface I have:

  char *tString;

which in createBegin I initialize with, for example,

  obj->tString = (char *) malloc( 64 );

and then I set up the probe with

  probeMap = [EmptyProbeMap createBegin: aZone];
  [probeMap setProbedClass: [self class]];
  probeMap = [probeMap createEnd];

followed by:

  [probeMap addProbe: [probeLibrary getProbeForVariable: "tString"
                                    inClass: [self class]]];


- r

Rick Riolo                           address@hidden
Center for Study of Complex Systems (CSCS)
4477 Randall Lab                
University of Michigan         Ann Arbor MI 48109-1120
Phone: 734 763 3323                  Fax: 734 763 9267
http://www.pscs.umich.edu/PEOPLE/rlr-home.html

On Tue, 2 Nov 1999, Doug Donalson wrote:

> Date: Tue, 2 Nov 1999 01:35:53 -0800
> From: Doug Donalson <address@hidden>
> Reply-To: address@hidden
> To: address@hidden
> Subject: Strings and Probes
> 
> I would like the user to be able to enter file names via the model probe.  
> This means that I need to have the probe handle a string.  So far I have not 
> had any success, any suggestions?
> 
> Say one of my file names will be stored in "char dataInputName[40]",
> Can I just make a probe by:
> 
> [probeMap addProbe: [probeLibrary getProbeForVariable: "dataInput"
> 
> inClass: [self class]]];?
> 
> This does not seem to work.  I didn't find any examples in the swarmapps 
> either.
> 
> Cheers,
> 
>    D3
> 
> 
> 
> *********************************************************************
> * Doug Donalson                 Office: (805) 893-2962
> * Ecology, Evolution,           Home:   (805) 961-4447
> * and Marine Biology            email address@hidden  
> * UC Santa Barbara
> * Santa Barbara Ca. 93106
> *********************************************************************
> *                                                                         
> *   The most exciting phrase to hear in science, the one that             
> *   heralds new discoveries, is not "EUREKA" (I have found it) but        
> *   "That's funny ...?"                                                   
> *                                                                         
> *       Isaac Asimov                                                      
> *                                                                         
> *********************************************************************
> 
> 
> 


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