1
//
2
3
4
using System;
5
using System.Runtime.Serialization;
6
using System.Threading;
7
8
namespace SharpLib.Ear
9
{
10
[DataContract]
11
public abstract class Action: IComparable
12
13
public abstract void Execute();
14
15
public string Name {
16
//Get the name of this object action attribute
17
get { return Utils.Reflection.GetAttribute<AttributeAction>(GetType()).Name; }
18
private set { }
19
}
20
21
public int CompareTo(object obj)
22
23
//Sort by action name
24
return Utils.Reflection.GetAttribute<AttributeAction>(GetType()).Name.CompareTo(obj.GetType());
25
26
27
28
29