Class BehaviorTracker
java.lang.Object
repast.simphony.visualization.visualization3D.BehaviorTracker
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
behaviorCompleted
(int id) Notifies this BehaviorTracker that the behavior associated with the specified id has completed executing.void
deregisterBehavior
(int index) void
end()
boolean
int
Registers a behavior for tracking.void
void
reset()
-
Constructor Details
-
BehaviorTracker
public BehaviorTracker()
-
-
Method Details
-
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()
-