public class PerceptList
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PerceptList.PerceptEntry
Entry for a scheduled percept.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<PerceptList.PerceptEntry> |
percepts
The scheduled percepts.
|
protected IEnvironmentSpace |
space
The environment space.
|
| Constructor and Description |
|---|
PerceptList(IEnvironmentSpace space)
Create a new percept list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processPercepts(IFilter<PerceptList.PerceptEntry> filter)
Process scheduled percepts.
|
void |
schedulePercept(java.lang.String type,
java.lang.Object data,
IComponentDescription component,
ISpaceObject avatar,
IPerceptProcessor processor)
Schedules a percept.
|
void |
setOrdering(java.util.Comparator<PerceptList.PerceptEntry> comp)
Set an ordering used for executing actions.
|
protected IEnvironmentSpace space
protected java.util.Set<PerceptList.PerceptEntry> percepts
public PerceptList(IEnvironmentSpace space)
public void schedulePercept(java.lang.String type,
java.lang.Object data,
IComponentDescription component,
ISpaceObject avatar,
IPerceptProcessor processor)
type - The percept type.data - The content of the percept (if any).component - The component that should receive the percept.avatar - The avatar of the component (if any).processor - The percept processor.public void setOrdering(java.util.Comparator<PerceptList.PerceptEntry> comp)
comp - The comparator representing the ordering.public void processPercepts(IFilter<PerceptList.PerceptEntry> filter)
filter - A filter to select only a subset of percepts (or null for all percepts).