simbad.gui
Class AgentFollower

java.lang.Object
  extended by simbad.gui.AgentFollower
All Implemented Interfaces:
java.lang.Runnable

 class AgentFollower
extends java.lang.Object
implements java.lang.Runnable

The AgentFollower class is a helper class for the AgentInspector. It updates cyclically the world view point. in order to follow agent movements.


Field Summary
(package private)  SimpleAgent agent
           
(package private)  boolean changed
           
(package private)  boolean stopped
           
(package private)  java.lang.Thread thread
           
(package private)  int viewPointType
           
(package private)  World world
           
 
Constructor Summary
AgentFollower(World world, SimpleAgent agent)
           
 
Method Summary
protected  void resume()
           
 void run()
           
protected  void setViewPointType(int type)
           
protected  void suspend()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

world

World world

agent

SimpleAgent agent

thread

java.lang.Thread thread

stopped

boolean stopped

changed

boolean changed

viewPointType

int viewPointType
Constructor Detail

AgentFollower

AgentFollower(World world,
              SimpleAgent agent)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

setViewPointType

protected void setViewPointType(int type)

suspend

protected void suspend()

resume

protected void resume()