de.unifreiburg.twodeedoo.view
Interface ISchedulable

All Known Subinterfaces:
IActivity, IActor
All Known Implementing Classes:
BaseActor, ErrorActivity, LinearMotionActor, SimpleActivity

public interface ISchedulable

I want to run from time to time.

Author:
anton

Field Summary
static ISchedulable NULL_OBJECT
          an ISchedulable which does nothing.
 
Method Summary
 boolean run(int elapsedTimeMillis)
          Perform some work.
 

Field Detail

NULL_OBJECT

static final ISchedulable NULL_OBJECT
an ISchedulable which does nothing.

Method Detail

run

boolean run(int elapsedTimeMillis)
Perform some work.

Parameters:
elapsedTimeMillis - time in ms since last call.
Returns:
true: this should be run again, false: finished, don't call again.