Example #1
0
 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;
 }
Example #2
0
 public static Token Create(TokenFlag flag)
 {
     return(new Token(flag, string.Empty, string.Empty));
 }
Example #3
0
 public static Token Create(TokenFlag flag, string src, string dest, int value, int weight)
 {
     return(new Token(flag, src, dest, value, weight));
 }
Example #4
0
 public static Token Create(TokenFlag flag, string src, string dest)
 {
     return(new Token(flag, src, dest));
 }