Package cu.repsystestbed.data

Examples of cu.repsystestbed.data.Feedback


          {
            data = new EvolData(new ArrayList<Double>(), new ArrayList<Double>(),
                new ArrayList<Double>(), new ArrayList<Double>());
          }
         
          Feedback f1 = null, f0 = null;
          double ts1 = Double.MIN_VALUE, ts0 = Double.MIN_VALUE;
         
          if(fhge.feedbacks.size() >= 2)
          {
            f1 = fhge.feedbacks.get(fhge.feedbacks.size() - 1);
View Full Code Here


      {
        /*
         * t(u) = sum( s(u,i) * cr(p(u,i)) )
         * cr(p(u,i)) = t(p(u,i)) / sum(p(u,i))
         */
        Feedback exp = (Feedback)it2.next();
        trustScoreToBeCalculated = trustScoreToBeCalculated + exp.value * (trustScore/totalTrustScore);
      }
     
    }
   
 
View Full Code Here

      try
      {
        for(FeedbackHistoryGraphEdge fhge : (ArrayList<FeedbackHistoryGraphEdge>) changes)
        {

          Feedback f1 = null, f0 = null;
          double ts1 = Double.MIN_VALUE, ts0 = Double.MIN_VALUE;
         
          if(fhge.feedbacks.size() >= 2)
          {
            f1 = fhge.feedbacks.get(fhge.feedbacks.size() - 1);
View Full Code Here

  {
    this.maxAgentId = maxAgentId;
    Iterator it = feedbacks.iterator();
    while(it.hasNext())
    {
      Feedback tr = (Feedback)it.next();
      //we care only if it is  complaint
      addTransaction(tr, threshold, maxAgentId);
    }
  }
View Full Code Here

  {
    Agent a = new Agent();
    Agent b = new Agent();
    Agent c = new Agent();
    Agent d = new Agent();
    Feedback tr = new Feedback(a,b,0.2);
    Feedback tr1 = new Feedback(c,b,0.2);
    Feedback tr2 = new Feedback(d,b,0.2);
    Feedback tr3 = new Feedback(b,a,0.2);
    Feedback tr4 = new Feedback(c,a,0.2);
    Feedback tr5 = new Feedback(d,a,0.2);
    Feedback tr6 = new Feedback(b,c,0.2);
    Feedback tr7 = new Feedback(a,c,0.2);
    Feedback tr8 = new Feedback(d,c,0.2);
    Feedback tr9 = new Feedback(a,d,0.2);
    Feedback tr10 = new Feedback(b,d,0.2);
    Feedback tr11 = new Feedback(c,d,0.2);

    ArrayList transactions = new ArrayList();
    transactions.add(tr);
    transactions.add(tr1);
    transactions.add(tr2);
View Full Code Here

     * @param assessee The agent that is receiving the feedback
     * @param feedback The value of the feedback
     */
    public void addFeedback(Agent assessor, Agent assessee, double feedback) {
        try {
            super.addFeedback(new Feedback(assessor, assessee, feedback));
            label = new StringBuffer();
        } catch (Exception ex) {
            ChatterBox.error(this, "addFeedback()", ex.getMessage());
            ex.printStackTrace();
        }
View Full Code Here

   */
  public ResponseFeedbackMsg(Agent sender, Agent receiver, Agent assesee, Double value) throws Exception
  {
    super(sender, receiver);
    //asessor is always the sender
    setFeedback(new Feedback(sender, assesee, value));
   
  }
View Full Code Here

          {
            for(int i=0;i<assignment.m_strategy.getNumberOfFeedbacks();i++)
            {
              if(!a.equals(b))
              {
                Feedback f = new Feedback(a, b, getRandom(assignment.m_strategy.getFeedbackMean(),
                    assignment.m_strategy.getStdDev()));
                feedbacks.add(f);
              }
            }
          }
View Full Code Here

        }
        Agent assessor = new Agent(new Integer(feedbackInstance[0]));
        Agent assessee = new Agent(new Integer(feedbackInstance[1]));
        Double value = new Double(feedbackInstance[2]);
       
        Feedback f = new Feedback(assessor, assessee, value);
        feedbacks.add(f);
        logger.info("Added " + f );
       
      }
View Full Code Here

TOP

Related Classes of cu.repsystestbed.data.Feedback

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.