コード例 #1
0
        public override string ShortBehaviorInformation()
        {
            string init = (targetLane != null ? targetLane.ToString() : "To Zone");
            string decs = "";

            foreach (BehaviorDecorator bd in this.Decorators)
            {
                if (bd is ShutUpAndDoItDecorator)
                {
                    decs += ", " + ((ShutUpAndDoItDecorator)bd).Level.ToString();
                }
            }
            if (this.leftBound == null)
            {
                decs += ", lBnull";
            }
            if (this.rightBound == null)
            {
                decs += ", rBnull";
            }

            return(init + decs);
        }
コード例 #2
0
 public override string ShortBehaviorInformation()
 {
     return(startLane.ToString() + " -> " + targetLane.ToString() + ", d: " + this.maxDist.ToString("f2"));
 }
コード例 #3
0
 public override string ShortBehaviorInformation()
 {
     return(targetLane != null?targetLane.ToString() : "NONE");
 }
コード例 #4
0
 public override string ShortBehaviorInformation()
 {
     return(endingLane == null ? "null" : endingLane.ToString());
 }