Agent System POND 1.2 (28.2.2002)

PkgAgentSystem.Experiences
Class Statement

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

public class Statement
extends Object
implements Serializable

A statement from one agent on another one that a certain characteristic has a certain value. The value is expressed as a float while the characteirstic is a case-independent string. Used for storing and exchanging experiences.

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

Constructor Summary
Statement(AgentIdentity source, AgentIdentity onAgent, String characteristic, double value)
          Creates a new statement.
 
Method Summary
 boolean equals(Object obj)
          Compares this statement to another object.
 String getCharacteristic()
          Returns the characteristic of this statement.
 AgentIdentity getOnAgentID()
          Returns the identity of the agent posessing the characteristic.
 AgentIdentity getSourceAgentID()
          Returns the identity of the agent telling this statement.
 double getValue()
          Returns the value of the characteristic of this statement.
 String toString()
          Returns a string representation of this statement.
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Statement

public Statement(AgentIdentity source,
                 AgentIdentity onAgent,
                 String characteristic,
                 double value)
Creates a new statement.
Parameters:
source - the identity of the agent telling the statement. Must be provided.
onAgent - the identity of the agent which has this characteristic. Must be provided.
characteristic - the characterictic of the destination agent. Must be provided.
value - the degree to which this characteristic is present
Method Detail

getSourceAgentID

public AgentIdentity getSourceAgentID()
Returns the identity of the agent telling this statement.
Returns:
identity of the agent telling about the characteristic

getOnAgentID

public AgentIdentity getOnAgentID()
Returns the identity of the agent posessing the characteristic.
Returns:
identity of the agent on which this statement is

getCharacteristic

public String getCharacteristic()
Returns the characteristic of this statement.
Returns:
the characteristic

getValue

public double getValue()
Returns the value of the characteristic of this statement.
Returns:
the value this characteristic applies to the agent on which this statement is

toString

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

equals

public boolean equals(Object obj)
Compares this statement to another object.
Overrides:
equals in class Object

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.