Marcel,

If each agent is calling the extension with its own values, then this is 
relatively straight-forward and I can send you some sample code that should 
get you started.  You can email me "offline".

Charles

On Monday, December 11, 2017 at 9:43:05 AM UTC-5, Marcel123 Dum wrote:
>
> I just realized this might be the wrong place for this question. Is there 
> any suggestion where I might find help regarding this topic?
>
> Am Montag, 11. Dezember 2017 15:28:47 UTC+1 schrieb Marcel123 Dum:
>>
>> Hi,
>>
>> I have a short question concerning the integration of a java extension 
>> into my Netlogo Program.
>>
>> What I want to do is create an extension that takes certain traits from 
>> an agent.
>> These traits(all double values) should then used in my java code to do 
>> some calculations. I then want to return a double value back to NetLogo to 
>> change one trait of the turtle. 
>>
>> How do I access traits of the turtle in the java extension and what is 
>> the correct return type for the double value (back to NetLogo). 
>>
>> Any help is greatly appreciated. :)
>>
>>
>> *Simple Example: (for Illustration)*
>> *NetLogo*: 
>> Agent Characteristics: 
>> A = 0.5
>> B = 0.4
>> C= 0.1
>> *D = 0.0*
>>
>> *Java: *(get values of A,B,C)
>> return A + B + C = 1.0
>>
>> *NetLogo: *(gets value of d returned)
>> A = 0.5
>> B = 0.4
>> C= 0.1
>> *D = 1.0*
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netlogo-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to