Esempio n. 1
0
            public int Compare(Column x, Column y)
            {
                x.CombinedSA.Sort(StrainingAction.SortNormalAscendingly());
                Station a = x.CombinedSA[0].Stations[0];

                y.CombinedSA.Sort(StrainingAction.SortNormalAscendingly());
                Station b = y.CombinedSA[0].Stations[0];

                if (a.No < b.No)
                {
                    return(-1);
                }
                else if (a.No > b.No)
                {
                    return(1);
                }
                else
                {
                    return(0);
                }
            }
Esempio n. 2
0
            public int Compare(Beam x, Beam y)
            {
                x.CombinedSA.Sort(StrainingAction.SortMomentDescendingly());
                Station a = x.CombinedSA[0].Stations[0];

                y.CombinedSA.Sort(StrainingAction.SortMomentDescendingly());
                Station b = y.CombinedSA[0].Stations[0];

                if (Math.Abs(a.Mo) > Math.Abs(b.Mo))
                {
                    return(-1);
                }
                else if (a.Mo < b.Mo)
                {
                    return(1);
                }
                else
                {
                    return(0);
                }
            }