public class AgentInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Location |
location
The location.
|
protected java.lang.String |
name
The agents name.
|
protected java.lang.String |
type
The type.
|
protected double |
vision
The vision.
|
Constructor and Description |
---|
AgentInfo(java.lang.String name,
java.lang.String type,
Location location,
double vision)
Create a new agent info.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Two agent infos are the same
when their name is equal.
|
Location |
getLocation()
Get the location.
|
java.lang.String |
getName()
Get the name.
|
java.lang.String |
getType()
Get the type.
|
double |
getVision()
Get the vision.
|
int |
hashCode()
Get the hashcode.
|
void |
setLocation(Location location)
Set the location.
|
void |
setName(java.lang.String name)
Setter for name.
|
void |
setType(java.lang.String type)
Setter for type.
|
void |
setVision(double vision)
Setter for vision.
|
protected java.lang.String name
protected java.lang.String type
protected Location location
protected double vision
public AgentInfo(java.lang.String name, java.lang.String type, Location location, double vision)
public java.lang.String getName()
public java.lang.String getType()
public Location getLocation()
public double getVision()
public void setLocation(Location location)
location
- The location.public void setName(java.lang.String name)
name
- The AgentInfo.java value to setpublic void setType(java.lang.String type)
type
- The AgentInfo.java value to setpublic void setVision(double vision)
vision
- The AgentInfo.java value to setpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object