コード例 #1
0
ファイル: DeciderConfig.cs プロジェクト: zakirIndia/simulator
        public override int GetHashCode()
        {
            int hash = 1;

            if (StopDistance != 0D)
            {
                hash ^= StopDistance.GetHashCode();
            }
            if (SpeedLimit != 0D)
            {
                hash ^= SpeedLimit.GetHashCode();
            }
            if (MaxValidStopDistance != 0D)
            {
                hash ^= MaxValidStopDistance.GetHashCode();
            }
            if (MinBoundaryT != 0D)
            {
                hash ^= MinBoundaryT.GetHashCode();
            }
            if (IgnoreMaxStMinT != 0D)
            {
                hash ^= IgnoreMaxStMinT.GetHashCode();
            }
            if (IgnoreMinStMinS != 0D)
            {
                hash ^= IgnoreMinStMinS.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
ファイル: DeciderConfig.cs プロジェクト: zakirIndia/simulator
        public override int GetHashCode()
        {
            int hash = 1;

            if (Enabled != false)
            {
                hash ^= Enabled.GetHashCode();
            }
            if (StopDistance != 0D)
            {
                hash ^= StopDistance.GetHashCode();
            }
            if (SignalExpireTimeSec != 0D)
            {
                hash ^= SignalExpireTimeSec.GetHashCode();
            }
            return(hash);
        }