for(TestbedEdge e : edges)
{
display += e.src + "\n";
if(e instanceof FeedbackHistoryGraphEdge)
{
FeedbackHistoryGraphEdge fhe = (FeedbackHistoryGraphEdge) e;
display += "Feedbacks: " + fhe.toString3() + "\n";
}
else if(e instanceof ReputationEdge)
{
ReputationEdge re = (ReputationEdge) e;
display += "Reputation: " + re.getReputation() + "\n";
}
}
display += "--";
edges = m_viewer.m_graphModel.outgoingEdgesOf(new Agent(agentId));
Util.assertNotNull(edges);
if(edges.size() > 0)
{
display += "\n" + "Outgoing Edges:" + "\n";
}
for(TestbedEdge e : edges)
{
display += e.sink + "\n";
if(e instanceof FeedbackHistoryGraphEdge)
{
FeedbackHistoryGraphEdge fhe = (FeedbackHistoryGraphEdge) e;
display += "Feedbacks: " + fhe.toString3() + "\n";
}
else if(e instanceof ReputationEdge)
{
ReputationEdge re = (ReputationEdge) e;
display += "Reputation: " + re.getReputation() + "\n";