public abstract class GoalFeeder<T>
extends java.lang.Object
Constructor and Description |
---|
GoalFeeder(IModel model,
boolean throwExceptionOnInvalidResponse)
will call assembleConstructors, responders.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.Collection<IGoalInjector<T>> |
assembleInjectors()
instantiate all the constructors to be used to generate the goals
|
void |
done()
called when there is nothing left to do
|
IGoalInjector<T> |
getInjector(T experimentTask)
return the goal constructor that may be able to build a goal chunk for this
task
|
IModel |
getModel() |
protected void |
insertAndRelease(double maxTimeToElapse) |
protected void |
insertAndRelease(GatingTimedEvent gte) |
IChunk |
nextGoal(T experimentTask)
Bug: currently will always return null until some more
refactoring is done
|
protected void |
release() |
void |
respond(IInstantiation instantiation)
generate a response given this goal chunk
|
protected boolean |
waitForModel()
returns true if there was a gate to wait on
|
public GoalFeeder(IModel model, boolean throwExceptionOnInvalidResponse)
model
- blockInitially
- public void done()
public IModel getModel()
protected abstract java.util.Collection<IGoalInjector<T>> assembleInjectors()
public IGoalInjector<T> getInjector(T experimentTask)
experimentTask
- public IChunk nextGoal(T experimentTask)
experimentTask
- protected void insertAndRelease(double maxTimeToElapse)
protected void insertAndRelease(GatingTimedEvent gte)
protected void release()
protected boolean waitForModel()
public void respond(IInstantiation instantiation)
chunk
-