agentland.resource
Class Request
java.lang.Object
|
+--agentland.resource.Request
- All Implemented Interfaces:
- Serializable
- public class Request
- extends Object
- implements Serializable
What is shipped out to find a ResourceBunch.
Immutable
- See Also:
- Serialized Form
Request
public Request(String s)
Request
public Request(String s,
Need need)
Request
public Request(String s,
boolean isOccupation)
Request
public Request(String s,
Need need,
boolean isOccupation)
Request
public Request(String occ,
String des,
boolean isOccupation)
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