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 SummaryAll 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- 
nameprotected java.lang.String name The agents name.
 - 
typeprotected java.lang.String type The type.
 - 
locationprotected Location location The location.
 - 
visionprotected double vision The vision.
 
- 
 - 
Constructor Detail- 
AgentInfopublic AgentInfo(java.lang.String name, java.lang.String type, Location location, double vision)Create a new agent info.
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Get the name.- Returns:
- The name.
 
 - 
getTypepublic java.lang.String getType() Get the type.- Returns:
- The type.
 
 - 
getLocationpublic Location getLocation() Get the location.- Returns:
- The location.
 
 - 
getVisionpublic double getVision() Get the vision.- Returns:
- The vision.
 
 - 
setLocationpublic void setLocation(Location location) Set the location.- Parameters:
- location- The location.
 
 - 
setNamepublic void setName(java.lang.String name) Setter for name.- Parameters:
- name- The AgentInfo.java value to set
 
 - 
setTypepublic void setType(java.lang.String type) Setter for type.- Parameters:
- type- The AgentInfo.java value to set
 
 - 
setVisionpublic void setVision(double vision) Setter for vision.- Parameters:
- vision- The AgentInfo.java value to set
 
 - 
equalspublic boolean equals(java.lang.Object o) Two agent infos are the same when their name is equal.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Get the hashcode.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-