public Token(TokenFlag flag, string src, string dest, int value, int weight) { _flag = flag; _src = src; _dest = dest; _value = value; _weight = weight; _head = this; _next = null; }
public static Token Create(TokenFlag flag) { return(new Token(flag, string.Empty, string.Empty)); }
public static Token Create(TokenFlag flag, string src, string dest, int value, int weight) { return(new Token(flag, src, dest, value, weight)); }
public static Token Create(TokenFlag flag, string src, string dest) { return(new Token(flag, src, dest)); }