printInfo() 공개 메소드

public printInfo ( ) : string
리턴 string
예제 #1
0
        //Set info about agent ( full details )
        public void setDetailedInfo(string agentName, Observation obs, int[] action, int position)
        {
            string info = Environment.NewLine + "---------------------------------" + Environment.NewLine + agentName + " is next.Currently on position : " + position.ToString();
            info += Environment.NewLine + "Observation received : " + obs.printInfo();
            //    info += Environment.NewLine + "Action selected :  ";
            for (int i = 0; i < action.Length; i++)
            { info += action[i].ToString() + ","; }

            info.Remove(info.Length - 1);
            MainWindow mw = (MainWindow)Application.Current.MainWindow;
            mw.obsInfo.Text = info;

             //   MessageBox.Show(info);
        }