Agent System POND 1.2 (28.2.2002)

PkgAgentSystem.Experiences
Class TrustStatement

java.lang.Object
  |
  +--PkgAgentSystem.Experiences.Statement
        |
        +--PkgAgentSystem.Experiences.TrustStatement
All Implemented Interfaces:
Serializable

public class TrustStatement
extends Statement

A statement from one agent on another one that he trusts this agent to a certain degree. The value is expressed as a percent (0.0 - 1.0).

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
Experiences, Serialized Form

Constructor Summary
TrustStatement(AgentIdentity source, AgentIdentity onAgent, double onAgentTrust)
          Creates a new statement that an agent trusts another one to a certain degree.
 
Method Summary
 double getTrust()
          Returns the trust in the agent.
 String toString()
          Returns a string representation of this trust statement.
 
Methods inherited from class PkgAgentSystem.Experiences.Statement
equals, getCharacteristic, getOnAgentID, getSourceAgentID, getValue
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrustStatement

public TrustStatement(AgentIdentity source,
                      AgentIdentity onAgent,
                      double onAgentTrust)
Creates a new statement that an agent trusts another one to a certain degree. The characteristic is stored as "TRUST".
Parameters:
source - the identity of the agent telling the statement. Must be provided.
onAgent - the identity of the agent which is (dis-)trusted. Must be provided.
onAgentTrust - the degree to which this agent is trusted (0.0 - 1.0)
Method Detail

getTrust

public double getTrust()
Returns the trust in the agent.
Returns:
the trust (same as getValue())

toString

public String toString()
Returns a string representation of this trust statement. Contains the names of the agent telling the statement and of the agent on which it is and its trust in this agent.
Overrides:
toString in class Statement
Returns:
a string representation of this trust statement

Agent System POND 1.2 (28.2.2002)

Submit a bug

Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.