예제 #1
0
파일: Vector.cs 프로젝트: pand5461/KOS-1
        public override Dump Dump()
        {
            DumpWithHeader dump = new DumpWithHeader();

            dump.Add(DumpX, X);
            dump.Add(DumpY, Y);
            dump.Add(DumpZ, Z);

            return(dump);
        }
예제 #2
0
        public override Dump Dump()
        {
            DumpWithHeader result = new DumpWithHeader();

            result.Header = "RANGE";

            result.Add(DumpStop, InnerEnumerable.Stop);
            result.Add(DumpStart, InnerEnumerable.Start);
            result.Add(DumpStep, InnerEnumerable.Step);

            return(result);
        }
예제 #3
0
        public virtual Dump Dump()
        {
            DumpWithHeader dump = new DumpWithHeader();

            dump.Header = "MESSAGE";

            dump.Add(DumpSentAt, SentAt);
            dump.Add(DumpReceivedAt, ReceivedAt);
            dump.Add(DumpContent, content);

            return(dump);
        }
예제 #4
0
        public override Dump Dump()
        {
            DumpWithHeader result = new DumpWithHeader();

            result.Header = "NOTE";

            result.Add("freq", Frequency);
            result.Add("endfreq", Frequency);
            result.Add("vol", Volume);
            result.Add("keydown", KeyDownLength);
            result.Add("duration", Duration);

            return(result);
        }
예제 #5
0
        public override Dump Dump()
        {
            DumpWithHeader dump = new DumpWithHeader();

            dump.Add("value", Value);

            return(dump);
        }
예제 #6
0
        public override Dump Dump()
        {
            DumpWithHeader dump = new DumpWithHeader();

            dump.Add("value", internalString);

            return(dump);
        }
예제 #7
0
        public override Dump Dump()
        {
            DumpWithHeader dump = new DumpWithHeader();

            dump.Header = "VESSEL '" + Vessel.vesselName + "'";

            dump.Add(DumpGuid, Vessel.id.ToString());

            return(dump);
        }
예제 #8
0
        public override Dump Dump()
        {
            var dump = new DumpWithHeader
            {
                Header = string.Format("BODY '{0}'", Body.bodyName)
            };

            dump.Add(DumpName, Body.bodyName);

            return(dump);
        }
예제 #9
0
        public override Dump Dump()
        {
            Dump dump = new DumpWithHeader
            {
                Header = "Message"
            };

            dump.Add(DumpMessage, Message);

            return(dump);
        }
예제 #10
0
        public override Dump Dump()
        {
            var result = new DumpWithHeader
            {
                Header = label + " of " + InnerEnumerable.Count() + " items:"
            };

            result.Add(kOS.Safe.Dump.Items, InnerEnumerable.Cast <object>().ToList());

            return(result);
        }
예제 #11
0
        public Dump Dump()
        {
            DumpWithHeader dump = new DumpWithHeader();

            dump.Header = "MESSAGE QUEUE";

            int i = 0;

            foreach (M message in Messages)
            {
                dump.Add(i, message);

                i++;
            }

            return(dump);
        }
예제 #12
0
        public override Dump Dump()
        {
            var result = new DumpWithHeader
            {
                Header = label + " of " + InnerEnumerable.Count() + " items:"
            };

            int i = 0;

            foreach (T item in this)
            {
                result.Add(i, item);
                i++;
            }

            return(result);
        }
예제 #13
0
        public override Dump Dump()
        {
            var result = new DumpWithHeader {
                Header = "PIDLoop"
            };

            result.Add("Kp", Kp);
            result.Add("Ki", Ki);
            result.Add("Kd", Kd);
            result.Add("Setpoint", Setpoint);
            result.Add("MaxOutput", MaxOutput);
            result.Add("MinOutput", MinOutput);
            result.Add("ExtraUnwind", ExtraUnwind);

            return(result);
        }
예제 #14
0
        public override Dump Dump()
        {
            var result = new DumpWithHeader
            {
                Header = "LEXICON of " + internalDictionary.Count() + " items:"
            };

            List <object> list = new List <object>();

            foreach (KeyValuePair <Structure, Structure> entry in internalDictionary)
            {
                list.Add(entry.Key);
                list.Add(entry.Value);
            }

            result.Add(kOS.Safe.Dump.Entries, list);

            return(result);
        }
예제 #15
0
        public override Dump Dump()
        {
            var result = new DumpWithHeader
            {
                Header = "LIST of " + Collection.Count() + " items:"
            };

            // This conversion is needed because TerminalFormatter.WriteIndented() demands to only
            // work with exactly List<object> and bombs out on List<Structure>'s:
            List <object> list = new List <object>();

            foreach (object entry in Collection)
            {
                list.Add(entry);
            }

            result.Add(kOS.Safe.Dump.Items, list);
            return(result);
        }