|
Agent System POND 1.0 (1.7.2000) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PkgAgentSystem.Experiences.Experiences
The System for managing opinions on other agents. Stores the own opinion on oneself, the opinion on
other agents and what the agents tell about each other.
See article for more.
Assumptions:
Constructor Summary | |
Experiences(AgentIdentity self)
Creates a new Experiences object for the agent with the provided identity. |
Method Summary | |
void |
addOwnOpinionOfOurself(String characteristic,
double value)
Sets the opinion of ourself on ourself (our own estimate how we do) concerning a characteristic. |
void |
addStatement(Statement stat)
Adds a statement to the experience model. |
boolean |
createModel(AgentIdentity whom)
Create an agent model for this agent. |
double |
createValue(AgentIdentity whom,
String characteristic)
Creates a model for the agent if it does not exist and creates the given key with its default value if this does not yet exist (Value: 0.0; Trust in this: 0.0). |
Enumeration |
getAgentModels()
Retrieve an enumeration of all agent models. |
double |
getAverageTrust()
Retrieve the average value of the general trust over all stored models. |
double |
getAverageValue(String characteristic)
Retrieve the average value of a characteristic over all stored models. |
protected double |
getDefaultTrust(AgentIdentity whom)
Returns the default level of trust in a certain agent. |
double |
getGeneralTrustOnAgent(AgentIdentity whom)
Returns the general trust towards the given agent. |
protected double |
getOwnOpinionOfOurself(String characteristic)
Retrieve the opinion of ourself on ourself (our own estimate how we do) concerning a characteristic. |
Vector[] |
getTraceLog()
Retrieve the traces (identities and lines). |
double |
getTrustInValueOnAgent(AgentIdentity whom,
String characteristic)
Returns the trust in the value of the characteristic of the given agent. |
double |
getValueOnAgent(AgentIdentity whom,
String characteristic)
Returns the value of the characteristic of the given agent. |
void |
reset(AgentIdentity self)
Resets this experiences model to the initial state. |
URL |
updateLocation(AgentIdentity identity,
URL newLocation)
Update the location for a certain agent. |
void |
writeTo(PrintWriter out)
Writes all experiences to a stream. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Experiences(AgentIdentity self)
self
- the identity of the owner of this experience modelMethod Detail |
public void reset(AgentIdentity self)
self
- the identity of the owner of this experience modelpublic URL updateLocation(AgentIdentity identity, URL newLocation)
identity
- the identity of the agent whose location is to be updatednewLocation
- the new location of the agent system at which the agent is believed to bepublic void addOwnOpinionOfOurself(String characteristic, double value)
characteristic
- the characteristic of us we want to store our opinion ofvalue
- the value of this characteristic of ourselfprotected double getOwnOpinionOfOurself(String characteristic)
characteristic
- the characteristic of us we want to retrieve our opinion ofprotected double getDefaultTrust(AgentIdentity whom)
whom
- the identity of the agent to evaluatepublic void addStatement(Statement stat)
AgentModel
objects
will be created for them.stat
- the statement to addpublic double getGeneralTrustOnAgent(AgentIdentity whom)
whom
- identity of the agentpublic double getValueOnAgent(AgentIdentity whom, String characteristic)
whom
- identity of the agentcharacteristic
- the name of characteristic whose value is neededpublic double getTrustInValueOnAgent(AgentIdentity whom, String characteristic)
whom
- identity of the agentcharacteristic
- the name of characteristic whose value is neededpublic boolean createModel(AgentIdentity whom)
whom
- identity of the agenttrue
if a model for this identity already existedpublic double createValue(AgentIdentity whom, String characteristic)
whom
- identity of the agentcharacteristic
- the characteristic to createpublic void writeTo(PrintWriter out)
out
- the stream to write topublic Enumeration getAgentModels()
ExperienceTest
.public double getAverageValue(String characteristic)
characteristic
- the characteristic to get the statistic forpublic double getAverageTrust()
public Vector[] getTraceLog()
null
if tracing is not enabled
|
Agent System POND 1.0 (1.7.2000) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |