public abstract class AbstractSimpleAIComponent extends java.lang.Object implements IChainable
Constructor and Description |
---|
AbstractSimpleAIComponent() |
AbstractSimpleAIComponent(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.
|
protected abstract EnvironmentModel |
processModel(EnvironmentModel model) |
void |
put(EnvironmentModel model)
This method takes the model it is given and passes it to processModel, which in turn returns a model.
|
void |
setNext(IChainable next)
Should set what getNext() returns.
|
public AbstractSimpleAIComponent()
public AbstractSimpleAIComponent(IChainable next)
public void put(EnvironmentModel model)
put
in interface IChainable
model
- The model to be processed.public 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
protected abstract EnvironmentModel processModel(EnvironmentModel model)