|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--agentland.resource.Resource
A Resource is a description of some kind of functionality that can be allocated, etc. It is not the stuff itself, AGENTS are the stuff itself, if there is any stuff. Things like wires can't be messed with, so a Resource description suffices.
Constructor Summary | |
Resource(Request req,
String occupation)
|
|
Resource(Request req,
String occupation,
AgentID agt)
|
|
Resource(Request req,
String name,
String occupation,
AgentID agt)
|
|
Resource(Resource r)
|
|
Resource(String name,
String occupation,
String agentID,
boolean abst)
This constructor is used by the MESS side of Krzysztof's resource manager |
Method Summary | |
Object |
clone()
|
boolean |
equals(Object o)
|
Context |
getContext()
Get the value of context. |
String |
getContext(String prop_name)
Get a specific property of this resource. |
boolean |
getFilled()
Get the value of filled. |
String |
getName()
Get the value of name. |
String |
getOccupation()
Get the value of occupation. |
ResourceProperties |
getProperties()
Get associated properties of a given Resource. |
Request |
getRequest()
Get the value of request. |
Object |
getThing()
Get the value of thing. |
int |
hashCode()
so resources can be put in hashtables by the relevant equals() fields. |
boolean |
isAbstract()
true if no agent has to be running for the resource to be available. |
void |
setAbstract(boolean v)
true if no agent has to be running for the resource to be available. |
void |
setContext(Context v)
Set the value of context. |
void |
setFilled(boolean v)
Set the value of filled. |
void |
setName(String v)
Set the value of name. |
void |
setOccupation(String v)
Set the value of occupation. |
void |
setProperties(ResourceProperties v)
Set the value of properties. |
void |
setRequest(Request v)
Set the value of request. |
void |
setThing(Object v)
Set the value of thing. |
String |
toString()
|
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Resource(Request req, String occupation)
public Resource(Request req, String occupation, AgentID agt)
agt
- the Thing in question (retrievable with getThing()public Resource(Request req, String name, String occupation, AgentID agt)
req
- the originating requestagt
- the Thing in question (retrievable with getThing()public Resource(String name, String occupation, String agentID, boolean abst)
name
- Name of the service (distinct from the occupation)occupation
- OccupationagentID
- string version of agentID of the agent that will
provide the serviceabst
- boolean to indicate if the service is abstract
(i.e. does not require any agent to startup) or notpublic Resource(Resource r)
Method Detail |
public Object clone()
public boolean isAbstract()
public void setAbstract(boolean v)
public ResourceProperties getProperties()
public void setProperties(ResourceProperties v)
v
- Value to assign to properties.public boolean getFilled()
public void setFilled(boolean v)
v
- Value to assign to filled.public String getName()
public void setName(String v)
v
- Value to assign to name.public String getOccupation()
public void setOccupation(String v)
v
- Value to assign to occupation.public Object getThing()
public void setThing(Object v)
v
- Value to assign to thing.public Context getContext()
public String getContext(String prop_name)
public void setContext(Context v)
v
- Value to assign to context.public Request getRequest()
public void setRequest(Request v)
v
- Value to assign to request.public boolean equals(Object o)
public int hashCode()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |