Examples of TrustEdgeFactory


Examples of cu.repsystestbed.graphs.TrustEdgeFactory

    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();
    List<Feedback> feedbacks = feedbackGen.generateHardcoded("feedbacks.arff");
   
View Full Code Here

Examples of cu.repsystestbed.graphs.TrustEdgeFactory

    /**
     * Creates a Trust Graph.
     * @param graphConfig This object contains all of the configurations for this graph
     */
    public SimTrustGraph(GraphConfig graphConfig) {
        super(graphConfig, (SimpleDirectedGraph) new TrustGraph(new TrustEdgeFactory()));
    }
View Full Code Here

Examples of cu.repsystestbed.graphs.TrustEdgeFactory

    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();
    ArrayList<Feedback> feedbacks = (ArrayList<Feedback>) feedbackGen.generateHardcoded("feedbacks.arff");
   
View Full Code Here

Examples of cu.repsystestbed.graphs.TrustEdgeFactory

    catch(Exception e)
    {
      throw new GenericTestbedException("Call setGraph2Listen() first.", e);
    }
   
    m_graph2Output = new TrustGraph(new TrustEdgeFactory());
    //an edge in the trust graph means src trusts sink. So don't copy the edges from the rep graph. just copy the agents
    for(Agent agent : (Set<Agent>) m_graph2Listen.vertexSet())
    {
      m_graph2Output.addVertex(agent);
    }
View Full Code Here

Examples of cu.repsystestbed.graphs.TrustEdgeFactory

    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);
    workflow2.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    workflow2.setSize(400, 320);
View Full Code Here

Examples of cu.repsystestbed.graphs.TrustEdgeFactory

            ReputationGraph rg = new ReputationGraph(new ReputationEdgeFactory());
            m_workflow.addItem(rg);
            storage.put("int_rg_" + r.nextInt(1000), rg);
            break;
          case TG:
            TrustGraph tg = new TrustGraph(new TrustEdgeFactory());
            m_workflow.addItem(tg);
            storage.put("int_tg_" + r.nextInt(1000), tg);
            break;
          default:
            throw new WorkflowParserException("Unknown input graph type for algorithm" + o);
View Full Code Here

Examples of cu.repsystestbed.graphs.TrustEdgeFactory

    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()));
   
    WorkflowParser2 parser = new WorkflowParser2("rg>as>rg", storage);
    System.out.println(parser);

  }
View Full Code Here

Examples of cu.repsystestbed.graphs.TrustEdgeFactory

      return new ReputationGraph(new ReputationEdgeFactory());
     
    }
    else if(graphType.equalsIgnoreCase(TRUSTGRAPH))
    {
      return new TrustGraph(new TrustEdgeFactory());
    }
    else
    {
      throw new WorkflowParserException("Unknown graph type.");
    }
View Full Code Here

Examples of cu.repsystestbed.graphs.TrustEdgeFactory

{
  static private Logger logger = Logger.getLogger(TrustGraphCreator.class);
 
  public static TrustGraph createGraph(String arffFileName) throws Exception
  {
    TrustGraph trustGraph = new TrustGraph(new TrustEdgeFactory());
   
    Util.assertNotNull(arffFileName);
    Util.assertFileExists(arffFileName);
   
    DataSource source;
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.