protected void RemoveAddress(Address address) { addressList.Remove(address); Log("Address " + address + " removed.", LogLevel.Minor); }
public ParentAgent() { Address = new Address(); Mediator.Register(this); }
/// <summary> /// Sends a cell to the tissue with the specified address. /// </summary> /// <param name="cell"></param> /// <param name="toAddress"></param> protected void SendCell(Cell cell, Address toAddress) { if (Agents.Contains(cell)) { RemoveCell(cell); } // TODO: the send delay is dummy Mediator.Send(AddCell, toAddress, 0.01, cell); Log(cell.Type + " was sent to tissue " + toAddress, LogLevel.Minor); }
public ChildAgent() { Address = new Address(); }
public AddressNotification(Address address, TissueType tissueType, NotifyReason reason) { Address = address; TissueType = tissueType; Reason = reason; }