public int compare(BASortedSet <FAState> s1, BASortedSet <FAState> s2)
        {
            if (s1.Count > s2.Count)
            {
                return(1);
            }
            else if (s1.Count < s2.Count)
            {
                return(-1);
            }
            else
            {
                SortedDictionary <FAState, bool> .Enumerator iter1 = s1.GetEnumerator();
                SortedDictionary <FAState, bool> .Enumerator iter2 = s2.GetEnumerator();

                while (iter1.MoveNext())
                {
                    iter2.MoveNext();

                    FAState st1 = iter1.Current.Key;
                    FAState st2 = iter2.Current.Key;
                    if (st1.ID > st2.ID)
                    {
                        return(1);
                    }
                    else if (st1.ID < st2.ID)
                    {
                        return(-1);
                    }
                }
                return(0);
            }
        }
예제 #2
0
 public int Compare(BASortedSet <Arc> arg0, BASortedSet <Arc> arg1)
 {
     return(arg0.ToString().CompareTo(arg1.ToString()));
 }
예제 #3
0
        //private void  InitBlock()
        //{
        //    return arg0.toString().compareTo(arg1.toString());
        //}
        //UPGRADE_ISSUE: The following fragment of code could not be parsed and was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1156'"
        //< TreeSet < Arc >>
        //public int compare;
        //UPGRADE_ISSUE: The following fragment of code could not be parsed and was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1156'"
        //(TreeSet < Arc > arg0, TreeSet < Arc > arg1)
        //UPGRADE_TODO: The following method was automatically generated and it must be implemented in order to preserve the class logic. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1232'"

        public int Compare(BASortedSet <Arc> x, BASortedSet <Arc> y)
        {
            return(x.ToString().CompareTo(y.ToString()));
        }