Class AgentInfo
- java.lang.Object
-
- jadex.bdi.examples.marsworld_classic.AgentInfo
-
public class AgentInfo extends java.lang.Object
The agent info class containing info about the robots.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
name
protected java.lang.String name
The agents name.
-
type
protected java.lang.String type
The type.
-
location
protected Location location
The location.
-
vision
protected double vision
The vision.
-
-
Constructor Detail
-
AgentInfo
public AgentInfo(java.lang.String name, java.lang.String type, Location location, double vision)
Create a new agent info.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name.- Returns:
- The name.
-
getType
public java.lang.String getType()
Get the type.- Returns:
- The type.
-
getLocation
public Location getLocation()
Get the location.- Returns:
- The location.
-
getVision
public double getVision()
Get the vision.- Returns:
- The vision.
-
setLocation
public void setLocation(Location location)
Set the location.- Parameters:
location
- The location.
-
setName
public void setName(java.lang.String name)
Setter for name.- Parameters:
name
- The AgentInfo.java value to set
-
setType
public void setType(java.lang.String type)
Setter for type.- Parameters:
type
- The AgentInfo.java value to set
-
setVision
public void setVision(double vision)
Setter for vision.- Parameters:
vision
- The AgentInfo.java value to set
-
equals
public boolean equals(java.lang.Object o)
Two agent infos are the same when their name is equal.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Get the hashcode.- Overrides:
hashCode
in classjava.lang.Object
-
-