TrustGrapher
r52
A playabale simulator for modelling trust between agents
|
Public Member Functions | |
SimFeedbackGraph (GraphConfig graphConfig) | |
void | graphEvent (TrustLogEvent event, boolean forward) |
void | graphConstructionEvent (TrustLogEvent event) |
A graph that displays individual feedbacks grouped together into edges. There is only ever one SimfeedbackGraph in a simulation.
Definition at line 18 of file SimFeedbackGraph.java.
cu.trustGrapher.graphs.SimFeedbackGraph.SimFeedbackGraph | ( | GraphConfig | graphConfig | ) |
Creates a feedback graph
graphConfig | This object contains all of the configurations for this graph |
Definition at line 25 of file SimFeedbackGraph.java.
void cu.trustGrapher.graphs.SimFeedbackGraph.graphConstructionEvent | ( | TrustLogEvent | event | ) |
Creates an edge but does not yet add the feedback to it. As the visible edges, are added, the feedbacks will be added to the hidden edges
event | The current event being processed that contains the ids of the assessor and assesse and feedback given |
Reimplemented from cu.trustGrapher.graphs.SimAbstractGraph.
Definition at line 61 of file SimFeedbackGraph.java.
void cu.trustGrapher.graphs.SimFeedbackGraph.graphEvent | ( | TrustLogEvent | event, |
boolean | forward | ||
) | [virtual] |
Called by the EventPlayer whenever a TrustLogEvent occurs. It is assumed that this graph is a dynamic graph. This method handles the addition or subtraction of edges and agents from the dynamic graph, and edge labels for both based on the event that is currently being processed.
event | The TrustLogEvent that is being processed |
forward | Whether or not the graph is being played forward |
Implements cu.trustGrapher.graphs.SimAbstractGraph.
Definition at line 38 of file SimFeedbackGraph.java.