Helloplease, can I have any comments about my unreal resulted values (source, target), in spite of the model runs normally ... is the operator "index_of" is mal used ?reflex w {loop i over: alias {localy <- list<float>(self.location);towery <- list<int>(self.tower);aliasy <- list<int>(self.ali) ;timery <- list<int>(self.timy) ;point source <-point(localy index_of i) ;int sourcetime<-timery index_of i;point target <-point(localy index_of (i+1)) ;int targettime<-timery index_of (i+1) ;if (source!=target){ difftime <- abs(float(sourcetime-targettime));
distance <- source distance_to target ;
--speedy <- (distance/difftime) ; }do goto target:target on:shape return_path:true speed:speedy;} }cheersSuhad
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.