Class AgentInfo
- java.lang.Object
-
- jadex.bdi.examples.marsworld_classic.AgentInfo
-
public class AgentInfo extends java.lang.ObjectThe agent info class containing info about the robots.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Two agent infos are the same when their name is equal.LocationgetLocation()Get the location.java.lang.StringgetName()Get the name.java.lang.StringgetType()Get the type.doublegetVision()Get the vision.inthashCode()Get the hashcode.voidsetLocation(Location location)Set the location.voidsetName(java.lang.String name)Setter for name.voidsetType(java.lang.String type)Setter for type.voidsetVision(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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Get the hashcode.- Overrides:
hashCodein classjava.lang.Object
-
-