mysterious running of a micro-behaviour

4 views
Skip to first unread message

howard...@gmail.com

unread,
Sep 21, 2012, 7:48:41 PM9/21/12
to modell...@googlegroups.com
i'd guess this is a scheduler problem, but I was wrong the last time I guessed...:


i can't see why the jobs ( red circles on the ' beach' ) flash red each hour (when minute = 0) 

the offending code is:

to SET-COLOR-DEPENDING-ON-WHETHER-EMPLOYING-TRUE-06654 
   do-every ( 1 ) 
            task [ ifelse my-employing? = true 
                          [ set color red ] 
                          [ set color [ 0 0 255 40 ] ] ] 

but I don't think it should be running because my-employing isn't changing.

I thought this might be due to me adding a do-after .99 enhancement to the CREATE-THE-HARBOR MB...because I noticed with this setting the minute reporter sometimes reports minute + .99...but no. putting a delay of 1 doesn't fix this issue.

i know it is the code above because if you change red to green the jobs flash green.

but why?

Ken Kahn

unread,
Sep 21, 2012, 8:17:13 PM9/21/12
to modell...@googlegroups.com
I clicked on 'List Attributes' and then on 'my-employing?' and one of the writers is START RECRUITING AT 1 HOUR

It sets it to true every hour.

Mystery solved.

Best,

-ken

--
You received this message because you are subscribed to the Google Groups "The Modelling4All project" group.
To view this discussion on the web visit https://groups.google.com/d/msg/modelling4all/-/VjCtMnCGC_cJ.
To post to this group, send email to modell...@googlegroups.com.
To unsubscribe from this group, send email to modelling4al...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/modelling4all?hl=en.

Reply all
Reply to author
Forward
0 new messages