public AgentVisualBase(AgentBase agentBase)
 {
     this.agentBase = agentBase;
     if (agentBase is HumanAgent)
     {
         this.Location = new Point(agentBase.GetCell().X, agentBase.GetCell().Y);
     }
     else if (agentBase is BusAgent)
     {
         this.Location = agentBase.GetPosition();
     }
     System.Windows.Controls.ToolTip tip = new System.Windows.Controls.ToolTip();
     tip.Content = string.Format("id:{0} group:{1} location:{2},{3} speed:{4}",agentBase.ID, agentBase.Group,agentBase.GetCell().X,agentBase.GetCell().Y,Math.Round(MapOld.CellSize *3600/agentBase.MaxSpeed,2));
     this.ToolTip = tip;
 }
 public TrainAgentVisual(AgentBase agentBase)
     : base(agentBase)
 {
 }
 public HumanAgentVisual(AgentBase agentBase)
     : base(agentBase)
 {
 }
 public BusAgentVisual(AgentBase agentBase)
     : base(agentBase)
 {
 }