You are on page 1of 2

#region Using Directives

using System;

#endregion
namespace RumbaMumbaRobots.Paths
{
/// <summary>
///
/// </summary>
class LeafRobotPath : RobotPath
{
#region Class Constructors

/// <summary>
///
/// </summary>
/// <param name="cellName"></param>
public LeafRobotPath(string cellName)
: base(cellName)
{
}

#endregion

#region Methods Implementations

/// <summary>
///
/// </summary>
/// <param name="robotPath"></param>
public override void Add(RobotPath robotPath)
{
throw new NotSupportedException("Invalid action: adding to a leaf robot
path");
}
/// <summary>
///
/// </summary>
/// <param name="robotPath"></param>
public override void Remove(RobotPath robotPath)
{
throw new NotSupportedException("Invalid action: removing from a leaf
robot path");
}
/// <summary>
///
/// </summary>
public override string GetVisitedPathsDetails()
{
return string.Format("The robot visited cell {0} ", _cellName);
}
/// <summary>
///
/// </summary>
/// <param name="cellName"></param>
/// <returns></returns>
public override bool IsVisited(string cellName)
{
throw new NotImplementedException();
}

#endregion
}
}

You might also like