public class PerceptList extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PerceptList.PerceptEntry
Entry for a scheduled percept.
|
Constructor and Description |
---|
PerceptList(IEnvironmentSpace space)
Create a new percept list.
|
Modifier and Type | Method and Description |
---|---|
void |
processPercepts(IFilter filter)
Process scheduled percepts.
|
void |
schedulePercept(String type,
Object data,
IComponentDescription component,
ISpaceObject avatar,
IPerceptProcessor processor)
Schedules a percept.
|
void |
setOrdering(Comparator comp)
Set an ordering used for executing actions.
|
public PerceptList(IEnvironmentSpace space)
public void schedulePercept(String type, 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(Comparator comp)
comp
- The comparator representing the ordering.public void processPercepts(IFilter filter)
filter
- A filter to select only a subset of percepts (or null for all percepts).Copyright © 2013. All Rights Reserved.