Package cu.repsystestbed.graphs

Examples of cu.repsystestbed.graphs.FeedbackHistoryEdgeFactory


  private void createWorkflow() throws Exception
  {
    BasicConfigurator.configure();
   
    // create the graphs
    FeedbackHistoryGraph feedbackHistoryGraph = new FeedbackHistoryGraph(new FeedbackHistoryEdgeFactory());
    ReputationGraph repGraph = new ReputationGraph(new ReputationEdgeFactory());
    TrustGraph trustGraph = new TrustGraph(new TrustEdgeFactory());
   
    // populate the feedback history graph by parsing the feedbacks from a arff file
    DefaultArffFeedbackGenerator feedbackGen = new DefaultArffFeedbackGenerator();
View Full Code Here


    /**
     * Creates a feedback graph
     * @param graphConfig This object contains all of the configurations for this graph
     */
    public SimFeedbackGraph(GraphConfig graphConfig) {
        super(graphConfig, (SimpleDirectedGraph) new FeedbackHistoryGraph(new FeedbackHistoryEdgeFactory()));
    }
View Full Code Here

  public static void main(String[] args) throws Exception
  {
    BasicConfigurator.configure();
   
    // create the graphs
    FeedbackHistoryGraph feedbackHistoryGraph = new FeedbackHistoryGraph(new FeedbackHistoryEdgeFactory());
    ReputationGraph repGraph = new ReputationGraph(new ReputationEdgeFactory());
    TrustGraph trustGraph = new TrustGraph(new TrustEdgeFactory());
   
    // populate the feedback history graph by parsing the feedbacks from a arff file
    DefaultArffFeedbackGenerator feedbackGen = new DefaultArffFeedbackGenerator();
View Full Code Here

  {
   
    BasicConfigurator.configure();
   
    //create graphs
    FeedbackHistoryGraph feedbackHistoryGraph = new FeedbackHistoryGraph(new FeedbackHistoryEdgeFactory());
    ReputationGraph repGraph = new ReputationGraph(new ReputationEdgeFactory());
    TrustGraph trustGraph = new TrustGraph(new TrustEdgeFactory());
   
    //swing listeners
    Workflow2 workflow2 = new Workflow2(feedbackHistoryGraph, repGraph, trustGraph);
View Full Code Here

    //initialize the eigentrust parameters
//    repAlg.setIterations(10);
//    repAlg.setThreshold2Satisfy(0.7);
   
    //create a feedback history graph
    FeedbackHistoryGraph feedbackHistoryGraph = new FeedbackHistoryGraph(new FeedbackHistoryEdgeFactory());
   
    //parse the feedbacks from the arff file
    DefaultArffFeedbackGenerator feedbackGen = new DefaultArffFeedbackGenerator();
    List<Feedback> feedbacks = feedbackGen.generateHardcoded("feedbacks.arff");
   
View Full Code Here

       
        if(t_graphType.toLowerCase().equals("fhg"))
        {
          DefaultArffFeedbackGenerator gen = new DefaultArffFeedbackGenerator();
          ArrayList<Feedback> feedbacks = (ArrayList<Feedback>) gen.generateHardcoded(t_graphInputFile);
          FeedbackHistoryGraph fhg = new FeedbackHistoryGraph(new FeedbackHistoryEdgeFactory());
          fhg.addFeedbacks(feedbacks, false);
          m_storage.put(t_graphName, fhg);
        }
        else if(t_graphType.toLowerCase().equals("rg"))
        {
View Full Code Here

        if(i > 0 && !(m_workflow.sequence.get(i-1) instanceof Graph))
        {
          switch(((Algorithm) o).getInputGraphType())
          {
          case FHG:
            FeedbackHistoryGraph fhg = new FeedbackHistoryGraph(new FeedbackHistoryEdgeFactory());
            m_workflow.addItem(fhg);
            storage.put("int_fhg_" + r.nextInt(1000), fhg);
            break;
          case RG:
            ReputationGraph rg = new ReputationGraph(new ReputationEdgeFactory());
View Full Code Here

  public static void main(String[] args) throws Exception
  {
    BasicConfigurator.configure();
   
    Hashtable<String, Object> storage = new Hashtable<String, Object>();
    storage.put("fhg", new FeedbackHistoryGraph(new FeedbackHistoryEdgeFactory()));
    storage.put("et", new EigenTrust());
    storage.put("rg", new ReputationGraph(new ReputationEdgeFactory()));
    storage.put("as", new Appleseed());
    storage.put("rk", new RankbasedTrustAlg());
    storage.put("tg", new TrustGraph(new TrustEdgeFactory()));
View Full Code Here

    }
     
    Graph graph;
    if(graphType.equalsIgnoreCase(FEEDBACKHISTORYGRAPH))
    {
      return new FeedbackHistoryGraph(new FeedbackHistoryEdgeFactory());
     
    }
    else if(graphType.equalsIgnoreCase(REPUTATIONGRAPH))
    {
      return new ReputationGraph(new ReputationEdgeFactory());
View Full Code Here

TOP

Related Classes of cu.repsystestbed.graphs.FeedbackHistoryEdgeFactory

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.