File size: 487 Bytes
90ca39a
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using AIMA.Agent.Object;

namespace AIMA.Agent.Action.Dynamic
{
    public class DynamicAction : ObjectWithDynamicAttributesBase, IAction
    {
        public const string ATTRIBUTE_NAME = "name";
        public DynamicAction(string name) => SetAttribute(ATTRIBUTE_NAME, name);
        public virtual bool IsNoOperation() => false;
        public string Name => (string)GetAttribute(ATTRIBUTE_NAME);
        public override string DescribeType => GetType().Name;
    }
}