Package cu.repsystestbed.graphs

Examples of cu.repsystestbed.graphs.FeedbackHistoryGraph.addFeedback()


    List<Feedback> feedbacks = feedbackGen.generateHardcoded("feedbacks.arff");
   
    // add the feedbacks to the feedback history graph
    for(Feedback f : feedbacks)
    {
      feedbackHistoryGraph.addFeedback(f);
    }
   
    // create the algorithms
    EigenTrust repAlg = (EigenTrust) ReputationAlgorithm.getInstance("cu.repsystestbed.algorithms.examples.EigenTrust");
    RankbasedTrustAlg trustAlg = (RankbasedTrustAlg) TrustAlgorithm.getInstance("cu.repsystestbed.algorithms.examples.RankbasedTrustAlg");
View Full Code Here


    List<Feedback> feedbacks = feedbackGen.generateHardcoded("feedbacks.arff");
   
    //add the feedbacks to the feedback history graph
    for(Feedback f : feedbacks)
    {
      feedbackHistoryGraph.addFeedback(f);
    }
   
    //eigentrust needs to use the feedback history graph
    repAlg.setGraph2Listen(feedbackHistoryGraph);
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.