public class LineOfSightPerception extends java.lang.Object implements Perception, GUIComponent
| Constructor and Description |
|---|
LineOfSightPerception()
Create a LineOfSightPerception 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 LineOfSightPerception()
public void initialise(Config newConfig, WorldModel<? extends Entity> model)
Perceptioninitialise in interface PerceptionnewConfig - The kernel configuration.model - The world model.public java.lang.String toString()
toString in class java.lang.Objectpublic javax.swing.JComponent getGUIComponent()
GUIComponentgetGUIComponent in interface GUIComponentpublic java.lang.String getGUIComponentName()
GUIComponentgetGUIComponentName in interface GUIComponentpublic void setTime(int timestep)
PerceptionsetTime in interface Perceptiontimestep - The current timestep.public ChangeSet getVisibleEntities(AgentProxy agent)
PerceptiongetVisibleEntities in interface Perceptionagent - The agent that is perceiving the world.