コード例 #1
0
        private bool algorithmHasUnicueFinalOperator()
        {
            bool hasFinalOperator = false;

            for (int i = 0; i < aOperator.Length; i++)
            {
                if (aOperator[i].VertexTo == null)
                {
                    if (hasFinalOperator)
                    {
                        return(false);
                    }
                    hasFinalOperator = true;
                    finalOperator    = aOperator[i];
                }
            }
            return(hasFinalOperator);
        }
コード例 #2
0
        private bool algorithmHasUnicueStartOperator()
        {
            bool hasStartOperator = false;

            for (int i = 0; i < aOperator.Length; i++)
            {
                if (aOperator[i].IsStartOperator)
                {
                    if (hasStartOperator)
                    {
                        return(false);
                    }
                    hasStartOperator = true;
                    startOperator    = aOperator[i];
                }
            }
            return(hasStartOperator);
        }