GraphStream Users

Archives de la liste Aide

SpriteManager and Threads

Chronologique Discussions 
  • From: Hagbard Celine <robotsnofollow AT>
  • To: graphstream-users AT
  • Subject: SpriteManager and Threads
  • Date: Fri, 18 Dec 2015 21:24:05 +0100


I have 1000 instance of the same object and I want them represented as Sprite on the graph and move around with setposition(newposition). Like cars on a street. I extends the Sprite class with my own model and every CustomSpriteModel runs on his own thread. But if two and more threads try to change the postion of his own Sprite with setpostion, a NoSuchElementException appears. I searched the whole graphstream website but I just found the ThreadedProxyPipe, that seams to solve my problem. But I don't know how to connect it with the SpriteManager and the graph or the view.

  • SpriteManager and Threads, Hagbard Celine, 18/12/2015

Archives gérées par MHonArc 2.6.16.

Top of page