Class BehaviorTracker
- java.lang.Object
-
- repast.simphony.visualization.visualization3D.BehaviorTracker
-
public class BehaviorTracker extends Object
Tracks the whether or not behaviors are finished executing with respect the current rendering iteration.Behaviors register themselves with this class, and receive an id. When a behavior finished executing, it should call behaviorCompleted and passing in that id.
- Version:
- $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description BehaviorTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
behaviorCompleted(int id)
Notifies this BehaviorTracker that the behavior associated with the specified id has completed executing.void
deregisterBehavior(int index)
void
end()
boolean
isRenderFinished()
int
registerBehavior()
Registers a behavior for tracking.void
renderStarted()
void
reset()
-
-
-
Method Detail
-
registerBehavior
public int registerBehavior()
Registers a behavior for tracking.- Returns:
- an id for that behavior to use to identify itself when it completes.
-
deregisterBehavior
public void deregisterBehavior(int index)
-
renderStarted
public void renderStarted()
-
behaviorCompleted
public void behaviorCompleted(int id)
Notifies this BehaviorTracker that the behavior associated with the specified id has completed executing.- Parameters:
id
- the id of the behavior that has completed.
-
reset
public void reset()
-
isRenderFinished
public boolean isRenderFinished()
-
end
public void end()
-
-