String agentIdString = (String) cell.getValue();
try
{
int agentId = new Integer(agentIdString);
Util.assertNotNull(m_viewer.m_graphModel);
Set<TestbedEdge> edges = m_viewer.m_graphModel.incomingEdgesOf(new Agent(agentId));
Util.assertNotNull(edges);
if(edges.size() > 0)
{
display += "\n" + "Incoming Edges:" + "\n";
}
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";
}