Jadex 0.96

jadex.examples.marsworld
Class AgentInfo

java.lang.Object
  extended by jadex.examples.marsworld.AgentInfo

public class AgentInfo
extends Object

The agent info class containing info about the robots.


Constructor Summary
AgentInfo(String name, String type, Location location, double vision)
          Create a new agent info.
 
Method Summary
 boolean equals(Object o)
          Two agent infos are the same when their name is equal.
 Location getLocation()
          Get the location.
 String getName()
          Get the name.
 String getType()
          Get the type.
 double getVision()
          Get the vision.
 void setLocation(Location location)
          Set the location.
 void setName(String name)
          Setter for name.
 void setType(String type)
          Setter for type.
 void setVision(double vision)
          Setter for vision.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentInfo

public AgentInfo(String name,
                 String type,
                 Location location,
                 double vision)
Create a new agent info.

Method Detail

getName

public String getName()
Get the name.

Returns:
The name.

getType

public 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(String name)
Setter for name.

Parameters:
name - The AgentInfo.java value to set

setType

public void setType(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(Object o)
Two agent infos are the same when their name is equal.

Overrides:
equals in class Object

Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.