T
- public interface IGoalInjector<T>
TimedEventQueue
should be checked
for any pending goal modifications executed by IBufferBasedTimedEvent
.
Modifier and Type | Method and Description |
---|---|
GatingTimedEvent |
createGate(double currentTime,
T experimentTask)
GatingTimedEvents are necessary to control the flow of the model - i.e.
|
IGoalResponder |
getResponder()
return the goal responder necessary for handling responses
|
boolean |
handles(T experimentTask)
return true if we can transform a experimentTask into a goal
|
IChunk |
injectGoal(T experimentTask,
IModel model,
GoalFeeder<T> feeder)
if
handles(Object) returns true, this will be called. |
boolean handles(T experimentTask)
component
- IChunk injectGoal(T experimentTask, IModel model, GoalFeeder<T> feeder)
handles(Object)
returns true, this will be called. returning
the inserted chunk. This is called on the model thread.experimentTask
- model
- feeder
- GatingTimedEvent createGate(double currentTime, T experimentTask)
currentTime
- experimentTask
- IGoalResponder getResponder()