public abstract class AbstractAsyncAIComponent extends java.lang.Object implements java.lang.Runnable, IChainable
Constructor and Description |
---|
AbstractAsyncAIComponent() |
AbstractAsyncAIComponent(IChainable next) |
Modifier and Type | Method and Description |
---|---|
IChainable |
getNext()
Should return the next component set by setNext()
|
boolean |
hasNext()
Should return true if a next component has been set.
|
void |
put(EnvironmentModel model)
Accept a model for processing.
|
void |
run() |
void |
setNext(IChainable next)
Should set what getNext() returns.
|
public AbstractAsyncAIComponent()
public AbstractAsyncAIComponent(IChainable next)
public void run()
run
in interface java.lang.Runnable
public void put(EnvironmentModel model)
IChainable
put
in interface IChainable
model
- The model to be processedpublic void setNext(IChainable next)
IChainable
setNext
in interface IChainable
next
- The next component in the chain.public IChainable getNext()
IChainable
getNext
in interface IChainable
public boolean hasNext()
IChainable
hasNext
in interface IChainable