public class StandardPerception extends java.lang.Object implements Perception, GUIComponent
Constructor and Description |
---|
StandardPerception()
Create a StandardPerception object.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
getGUIComponent()
Get a JComponent that should be added to the GUI.
|
java.lang.String |
getGUIComponentName()
Get the name of this part of the GUI.
|
ChangeSet |
getVisibleEntities(AgentProxy agent)
Determine what Entities are visible to a particular agent.
|
void |
initialise(Config newConfig,
WorldModel<? extends Entity> model)
Initialise this perception object.
|
void |
setTime(int timestep)
Notify this perception object of the current time.
|
java.lang.String |
toString() |
public StandardPerception()
public void initialise(Config newConfig, WorldModel<? extends Entity> model)
Perception
initialise
in interface Perception
newConfig
- The kernel configuration.model
- The world model.public java.lang.String toString()
toString
in class java.lang.Object
public javax.swing.JComponent getGUIComponent()
GUIComponent
getGUIComponent
in interface GUIComponent
public java.lang.String getGUIComponentName()
GUIComponent
getGUIComponentName
in interface GUIComponent
public void setTime(int timestep)
Perception
setTime
in interface Perception
timestep
- The current timestep.public ChangeSet getVisibleEntities(AgentProxy agent)
Perception
getVisibleEntities
in interface Perception
agent
- The agent that is perceiving the world.