TrustGrapher
r52
A playabale simulator for modelling trust between agents
|
Public Member Functions | |
SimFeedbackEdge (Agent src, Agent sink) throws Exception | |
String | toString () |
void | addFeedback (Agent assessor, Agent assessee, double feedback) |
void | removeFeedback (double feedback) |
boolean | equals (Object o) |
int | hashCode () |
An extension of FeedbackHistoryGraphEdge for use in the TrustGrapher trust simulator This is an edge that represents a list of transactions going from one peer to the other.
Definition at line 14 of file SimFeedbackEdge.java.
cu.trustGrapher.graphs.edges.SimFeedbackEdge.SimFeedbackEdge | ( | Agent | src, |
Agent | sink | ||
) | throws Exception |
Creates a SimFeedbackEdge.
src | The Agent that this edge originates from |
sink | The Agent that this edge ends at |
Exception | If the superclass constructor whines for some reason |
Definition at line 25 of file SimFeedbackEdge.java.
void cu.trustGrapher.graphs.edges.SimFeedbackEdge.addFeedback | ( | Agent | assessor, |
Agent | assessee, | ||
double | feedback | ||
) |
Adds feedback to this edge's list of feedbacks. Resets the label StringBuffer.
assessor | The agent that gave the feedback |
assessee | The agent that is receiving the feedback |
feedback | The value of the feedback |
Definition at line 56 of file SimFeedbackEdge.java.
boolean cu.trustGrapher.graphs.edges.SimFeedbackEdge.equals | ( | Object | o | ) |
Reimplemented from cu.repsystestbed.graphs.FeedbackHistoryGraphEdge.
Definition at line 82 of file SimFeedbackEdge.java.
int cu.trustGrapher.graphs.edges.SimFeedbackEdge.hashCode | ( | ) |
Definition at line 93 of file SimFeedbackEdge.java.
void cu.trustGrapher.graphs.edges.SimFeedbackEdge.removeFeedback | ( | double | feedback | ) |
Removes a feedback with the specified parameters form the edge. Resets the label StringBuffer.
feedback | The value of the feedback to remove |
Definition at line 71 of file SimFeedbackEdge.java.
String cu.trustGrapher.graphs.edges.SimFeedbackEdge.toString | ( | ) |
Returns a string representation of this edge. This string is displayed by the edge in the TrustGraphViewer. This String contains all of the feedback values that this edge has. If the stringBuffer has already been built, returns a string of it instead.
Definition at line 38 of file SimFeedbackEdge.java.