public CAGraphCellAgent Copy(CAGraphCell cell) { var agent = new CAGraphCellAgent(cell, this.Properties); return(agent); }
public void AddAgent(CAGraphCellAgent agent) { Agent = agent.Copy(this); Parent.AddAgentCell(Position); }
public void AddAgent(Dictionary <string, dynamic> properties) { Agent = new CAGraphCellAgent(this, properties); Parent.AddAgentCell(Position); }
public CAGraphCell(CAGraph parent, ValueTuple <ushort, ushort, ushort> position, Dictionary <string, dynamic> properties, CAGraphCellAgent agent) : base(CAEntityType.Cell, properties) { this.Parent = parent; this.Position = position; if (agent != null) { this.Agent = agent.Copy(this); } }