Esempio n. 1
0
		protected void RemoveAddress(Address address)
		{
			addressList.Remove(address);
			Log("Address " + address + " removed.", LogLevel.Minor);
		}
Esempio n. 2
0
		public ParentAgent()
		{
			Address = new Address();
			Mediator.Register(this);
		}
Esempio n. 3
0
		/// <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);
		}
Esempio n. 4
0
		public ChildAgent()
		{
			Address = new Address();
		}
Esempio n. 5
0
		public AddressNotification(Address address, TissueType tissueType, NotifyReason reason)
		{
			Address = address;
			TissueType = tissueType;
			Reason = reason;
		}