agentland.resource
Class Request

java.lang.Object
  |
  +--agentland.resource.Request

public class Request
extends Object
implements Serializable

What is shipped out to find a ResourceBunch. Immutable

See Also:
Serialized Form

Constructor Summary
Request(String s)
           
Request(String s, boolean isOccupation)
           
Request(String occ, String des, boolean isOccupation)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDetails()
          Get the value of details.
 String getName()
          Get the value of name.
 String getOccupation()
          Get the occupation (just the name field) if appropriate.
 int hashCode()
           
 boolean isOccupation()
          Get the value of occupation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Request

public Request(String s)

Request

public Request(String s,
               boolean isOccupation)

Request

public Request(String occ,
               String des,
               boolean isOccupation)
Method Detail

getName

public String getName()
Get the value of name. This is the resource, this can be an agent occupation for single agent requests.
Returns:
Value of name.

getDetails

public String getDetails()
Get the value of details. This is the resource, this can be an agent occupation for single agent requests.
Returns:
Value of details.

getOccupation

public String getOccupation()
Get the occupation (just the name field) if appropriate.
Returns:
Value of occupation.

isOccupation

public boolean isOccupation()
Get the value of occupation. Is this a single-agent request by occupation?
Returns:
Value of occupation.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object