Esempio n. 1
0
 public Message(Agent from_agent, Agent to_agent, AgentLink agent_link, Vector <double> opinion)
 {
     this.FromAgent   = from_agent;
     this.ToAgent     = to_agent;
     this.MyAgentLink = agent_link;
     this.Subject     = from_agent.MySubject;
     this.Opinion     = opinion;
 }
Esempio n. 2
0
 public AgentLink(AgentLink agent_link)
 {
     this.AgentLinkID = agent_link.AgentLinkID;
     this.SourceAgent = agent_link.SourceAgent;
     this.TargetAgent = agent_link.TargetAgent;
     this.SetInitSourceWeight(agent_link.InitSourceWeight);
     this.SetInitTargetWeight(agent_link.InitTargetWeight);
     this.InitOpinionRate();
 }