Package cu.repsystestbed.graphs

Examples of cu.repsystestbed.graphs.FeedbackHistoryGraphEdge


    double trustScoreToBeCalculated = 0;
 
    Iterator it1 = incomingEdges.iterator();
    while(it1.hasNext())
    {
      FeedbackHistoryGraphEdge e = (FeedbackHistoryGraphEdge)it1.next();
      ArrayList experiences = e.feedbacks;
      //breadth-first
      double trustScore = 0;
     
      if(this.trustScores.get(((Agent)e.src).id)==null)
View Full Code Here


            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";
View Full Code Here

TOP

Related Classes of cu.repsystestbed.graphs.FeedbackHistoryGraphEdge

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.