public static object Microsoft_Robotics_Technologies_Speech_SpeechRecognizer_SpeechRecognizerState_TO_Microsoft_Robotics_Technologies_Speech_SpeechRecognizer_Proxy_SpeechRecognizerState(object transformFrom) { global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognizerState target = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.SpeechRecognizerState(); global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.SpeechRecognizerState from = ((global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.SpeechRecognizerState)(transformFrom)); target.IgnoreAudioInput = from.IgnoreAudioInput; target.GrammarType = ((global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.GrammarType)(((int)(from.GrammarType)))); global::System.Collections.Generic.Dictionary <string, global:: System.String> tmp = from.DictionaryGrammar; global::Microsoft.Dss.Core.Utilities.DssDictionary <string, string> tmp0 = default(global::Microsoft.Dss.Core.Utilities.DssDictionary <string, string>); if ((tmp != null)) { tmp0 = new global::Microsoft.Dss.Core.Utilities.DssDictionary <string, string>(); for (global::System.Collections.Generic.IEnumerator <string> iterator = tmp.Keys.GetEnumerator(); iterator.MoveNext(); ) { string tmp1 = default(string); string tmp2 = default(string); tmp1 = iterator.Current; tmp2 = tmp[iterator.Current]; tmp0.Add(tmp1, tmp2); } } target.DictionaryGrammar = tmp0; target.SrgsFileLocation = from.SrgsFileLocation; return(target); }
public static object ProMRDS_Simulation_JointMover_JointMoverState_TO_ProMRDS_Simulation_JointMover_Proxy_JointMoverState(object transformFrom) { global::ProMRDS.Simulation.JointMover.Proxy.JointMoverState target = new global::ProMRDS.Simulation.JointMover.Proxy.JointMoverState(); global::ProMRDS.Simulation.JointMover.JointMoverState from = ((global::ProMRDS.Simulation.JointMover.JointMoverState)(transformFrom)); global::System.Collections.Generic.Dictionary <string, global:: ProMRDS.Simulation.JointMover.DOFDesc> tmp = from.Joints; global::Microsoft.Dss.Core.Utilities.DssDictionary <string, global::ProMRDS.Simulation.JointMover.Proxy.DOFDesc> tmp0 = default(global::Microsoft.Dss.Core.Utilities.DssDictionary <string, global::ProMRDS.Simulation.JointMover.Proxy.DOFDesc>); if ((tmp != null)) { tmp0 = new global::Microsoft.Dss.Core.Utilities.DssDictionary <string, global::ProMRDS.Simulation.JointMover.Proxy.DOFDesc>(); for (global::System.Collections.Generic.IEnumerator <string> iterator = tmp.Keys.GetEnumerator(); iterator.MoveNext(); ) { string tmp1 = default(string); global::ProMRDS.Simulation.JointMover.Proxy.DOFDesc tmp2 = default(global::ProMRDS.Simulation.JointMover.Proxy.DOFDesc); tmp1 = iterator.Current; global::ProMRDS.Simulation.JointMover.DOFDesc tmp3 = tmp[iterator.Current]; if ((tmp3 != null)) { tmp2 = ((global::ProMRDS.Simulation.JointMover.Proxy.DOFDesc)(ProMRDS_Simulation_JointMover_DOFDesc_TO_ProMRDS_Simulation_JointMover_Proxy_DOFDesc(tmp3))); } tmp0.Add(tmp1, tmp2); } } target.Joints = tmp0; target.tick = from.tick; return(target); }
/// <summary> ///Deserializes JointMoverState ///</summary> ///<param name="reader">the reader from which to deserialize</param> ///<returns>deserialized JointMoverState</returns> public virtual object Deserialize(System.IO.BinaryReader reader) { if ((reader.ReadByte() != 0)) { this._Joints = ((global::Microsoft.Dss.Core.Utilities.DssDictionary <string, global::ProMRDS.Simulation.JointMover.Proxy.DOFDesc>)(((Microsoft.Dss.Core.IDssSerializable)(new global::Microsoft.Dss.Core.Utilities.DssDictionary <string, global::ProMRDS.Simulation.JointMover.Proxy.DOFDesc>())).Deserialize(reader))); } return(this); }
public static object Microsoft_Robotics_Technologies_Speech_SpeechRecognizer_DeleteGrammarRequest_TO_Microsoft_Robotics_Technologies_Speech_SpeechRecognizer_Proxy_DeleteGrammarRequest(object transformFrom) { global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.DeleteGrammarRequest target = new global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.Proxy.DeleteGrammarRequest(); global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.DeleteGrammarRequest from = ((global::Microsoft.Robotics.Technologies.Speech.SpeechRecognizer.DeleteGrammarRequest)(transformFrom)); global::System.Collections.Generic.Dictionary <string, global:: System.String> tmp = from.DictionaryGrammar; global::Microsoft.Dss.Core.Utilities.DssDictionary <string, string> tmp0 = default(global::Microsoft.Dss.Core.Utilities.DssDictionary <string, string>); if ((tmp != null)) { tmp0 = new global::Microsoft.Dss.Core.Utilities.DssDictionary <string, string>(); for (global::System.Collections.Generic.IEnumerator <string> iterator = tmp.Keys.GetEnumerator(); iterator.MoveNext(); ) { string tmp1 = default(string); string tmp2 = default(string); tmp1 = iterator.Current; tmp2 = tmp[iterator.Current]; tmp0.Add(tmp1, tmp2); } } target.DictionaryGrammar = tmp0; return(target); }
public static object Microsoft_Robotics_Services_Sample_Lego_Nxt_ContactSensorArray_NxtContactSensorArrayState_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_ContactSensorArray_Proxy_NxtContactSensorArrayState(object transformFrom) { global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.NxtContactSensorArrayState target = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.NxtContactSensorArrayState(); global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.NxtContactSensorArrayState from = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.NxtContactSensorArrayState)(transformFrom)); global::System.Collections.Generic.List<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.SensorConfiguration> tmp = from.SensorConfiguration; if ((tmp != null)) { int count = tmp.Count; global::System.Collections.Generic.List<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.SensorConfiguration> tmp0 = new global::System.Collections.Generic.List<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.SensorConfiguration>(count); for (int index = 0; (index < count); index = (index + 1)) { global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.SensorConfiguration tmp1 = default(global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.SensorConfiguration); global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.SensorConfiguration tmp2 = tmp[index]; if ((tmp2 != null)) { tmp1 = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.SensorConfiguration)(Microsoft_Robotics_Services_Sample_Lego_Nxt_ContactSensorArray_SensorConfiguration_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_ContactSensorArray_Proxy_SensorConfiguration(tmp2))); } tmp0.Add(tmp1); } target.SensorConfiguration = tmp0; } global::System.Collections.Generic.Dictionary<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.SensorRange, global:: Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.PortConfiguration> tmp3 = from.RuntimeConfiguration; global::Microsoft.Dss.Core.Utilities.DssDictionary<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.SensorRange, global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.PortConfiguration> tmp4 = default(global::Microsoft.Dss.Core.Utilities.DssDictionary<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.SensorRange, global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.PortConfiguration>); if ((tmp3 != null)) { tmp4 = new global::Microsoft.Dss.Core.Utilities.DssDictionary<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.SensorRange, global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.PortConfiguration>(); for (global::System.Collections.Generic.IEnumerator<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.SensorRange> iterator = tmp3.Keys.GetEnumerator(); iterator.MoveNext(); ) { global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.SensorRange tmp5 = default(global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.SensorRange); global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.PortConfiguration tmp6 = default(global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.PortConfiguration); global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.SensorRange tmp7 = iterator.Current; if ((tmp7 != null)) { tmp5 = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.SensorRange)(Microsoft_Robotics_Services_Sample_Lego_Nxt_ContactSensorArray_SensorRange_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_ContactSensorArray_Proxy_SensorRange(tmp7))); } global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.PortConfiguration tmp8 = tmp3[iterator.Current]; if ((tmp8 != null)) { tmp6 = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.ContactSensorArray.Proxy.PortConfiguration)(Microsoft_Robotics_Services_Sample_Lego_Nxt_ContactSensorArray_PortConfiguration_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_ContactSensorArray_Proxy_PortConfiguration(tmp8))); } tmp4.Add(tmp5, tmp6); } } target.RuntimeConfiguration = tmp4; return target; }
public static object Microsoft_Robotics_Services_Sample_Lego_Nxt_Comm_NxtCommState_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_Comm_Proxy_NxtCommState(object transformFrom) { global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.Proxy.NxtCommState target = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.Proxy.NxtCommState(); global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.NxtCommState from = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.NxtCommState)(transformFrom)); target.ConnectOverBluetooth = from.ConnectOverBluetooth; target.Connected = from.Connected; global::System.Collections.Generic.Dictionary<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoCommandCode, global:: Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.LegoCommandStat> tmp = from.RuntimeStatistics; global::Microsoft.Dss.Core.Utilities.DssDictionary<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoCommandCode, global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.Proxy.LegoCommandStat> tmp0 = default(global::Microsoft.Dss.Core.Utilities.DssDictionary<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoCommandCode, global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.Proxy.LegoCommandStat>); if ((tmp != null)) { tmp0 = new global::Microsoft.Dss.Core.Utilities.DssDictionary<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoCommandCode, global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.Proxy.LegoCommandStat>(); for (global::System.Collections.Generic.IEnumerator<global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoCommandCode> iterator = tmp.Keys.GetEnumerator(); iterator.MoveNext(); ) { global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoCommandCode tmp1 = default(global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoCommandCode); global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.Proxy.LegoCommandStat tmp2 = default(global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.Proxy.LegoCommandStat); tmp1 = iterator.Current; global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.LegoCommandStat tmp3 = tmp[iterator.Current]; if ((tmp3 != null)) { tmp2 = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.Proxy.LegoCommandStat)(Microsoft_Robotics_Services_Sample_Lego_Nxt_Comm_LegoCommandStat_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_Comm_Proxy_LegoCommandStat(tmp3))); } tmp0.Add(tmp1, tmp2); } } target.RuntimeStatistics = tmp0; return target; }
public static object Microsoft_Robotics_Services_Sample_Lego_Nxt_Brick_Proxy_NxtRuntime_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_Brick_NxtRuntime(object transformFrom) { global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.NxtRuntime target = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.NxtRuntime(); global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.Proxy.NxtRuntime from = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.Proxy.NxtRuntime)(transformFrom)); target.BrickName = from.BrickName; target.Firmware = from.Firmware; target.Connected = from.Connected; global::Microsoft.Dss.Core.Utilities.DssDictionary<string, global:: Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.AttachRequest> tmp = default(global::Microsoft.Dss.Core.Utilities.DssDictionary<string, global:: Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.AttachRequest>); if ((from.Devices != null)) { tmp = new global::Microsoft.Dss.Core.Utilities.DssDictionary<string, global:: Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.AttachRequest>(); for (global::System.Collections.Generic.IEnumerator<string> iterator = from.Devices.Keys.GetEnumerator(); iterator.MoveNext(); ) { string tmp0 = default(string); global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.AttachRequest tmp1 = default(global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.AttachRequest); tmp0 = iterator.Current; if ((from.Devices[iterator.Current] != null)) { tmp1 = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.AttachRequest)(Microsoft_Robotics_Services_Sample_Lego_Nxt_Brick_Proxy_AttachRequest_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_Brick_AttachRequest(from.Devices[iterator.Current]))); } else { tmp1 = null; } tmp.Add(tmp0, tmp1); } } else { tmp = null; } target.Devices = tmp; return target; }
/// <summary> ///Copies the data member values of the current JointMoverState to the specified target object ///</summary> ///<param name="target">target object (must be an instance of)</param> public virtual void CopyTo(Microsoft.Dss.Core.IDssSerializable target) { global::ProMRDS.Simulation.JointMover.Proxy.JointMoverState typedTarget = ((global::ProMRDS.Simulation.JointMover.Proxy.JointMoverState)(target)); if ((this._Joints != null)) { global::Microsoft.Dss.Core.Utilities.DssDictionary <string, global::ProMRDS.Simulation.JointMover.Proxy.DOFDesc> tmp = new global::Microsoft.Dss.Core.Utilities.DssDictionary <string, global::ProMRDS.Simulation.JointMover.Proxy.DOFDesc>(); ((Microsoft.Dss.Core.IDssSerializable)(this._Joints)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp))); typedTarget._Joints = tmp; } typedTarget._tick = this._tick; }
public static object Microsoft_Robotics_Tools_DssLogAnalyzer_DssLogAnalyzerState_TO_Microsoft_Robotics_Tools_DssLogAnalyzer_Proxy_DssLogAnalyzerState(object transformFrom) { global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.DssLogAnalyzerState target = new global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.DssLogAnalyzerState(); global::Microsoft.Robotics.Tools.DssLogAnalyzer.DssLogAnalyzerState from = ((global::Microsoft.Robotics.Tools.DssLogAnalyzer.DssLogAnalyzerState)(transformFrom)); global::System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.EnvelopeList> tmp = from.Envelopes; if ((tmp != null)) { int count = tmp.Count; global::System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList> tmp0 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList>(count); for (int index = 0; (index < count); index = (index + 1)) { global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList tmp1 = default(global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList); global::Microsoft.Robotics.Tools.DssLogAnalyzer.EnvelopeList tmp2 = tmp[index]; if ((tmp2 != null)) { tmp1 = ((global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList)(Microsoft_Robotics_Tools_DssLogAnalyzer_EnvelopeList_TO_Microsoft_Robotics_Tools_DssLogAnalyzer_Proxy_EnvelopeList(tmp2))); } tmp0.Add(tmp1); } target.Envelopes = tmp0; } target.LogFilesFolder = from.LogFilesFolder; global::System.Collections.Generic.Dictionary <string, global:: System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.EnvelopeList> > tmp3 = from.LogFileEnvelopes; global::Microsoft.Dss.Core.Utilities.DssDictionary <string, global::System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList> > tmp4 = default(global::Microsoft.Dss.Core.Utilities.DssDictionary <string, global::System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList> >); if ((tmp3 != null)) { tmp4 = new global::Microsoft.Dss.Core.Utilities.DssDictionary <string, global::System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList> >(); for (global::System.Collections.Generic.IEnumerator <string> iterator = tmp3.Keys.GetEnumerator(); iterator.MoveNext(); ) { string tmp5 = default(string); global::System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList> tmp6 = default(global::System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList>); tmp5 = iterator.Current; global::System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.EnvelopeList> tmp7 = tmp3[iterator.Current]; if ((tmp7 != null)) { int count0 = tmp7.Count; global::System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList> tmp8 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList>(count0); for (int index0 = 0; (index0 < count0); index0 = (index0 + 1)) { global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList tmp9 = default(global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList); global::Microsoft.Robotics.Tools.DssLogAnalyzer.EnvelopeList tmp10 = tmp7[index0]; if ((tmp10 != null)) { tmp9 = ((global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList)(Microsoft_Robotics_Tools_DssLogAnalyzer_EnvelopeList_TO_Microsoft_Robotics_Tools_DssLogAnalyzer_Proxy_EnvelopeList(tmp10))); } tmp8.Add(tmp9); } tmp6 = tmp8; } tmp4.Add(tmp5, tmp6); } } target.LogFileEnvelopes = tmp4; target.Headless = from.Headless; global::Microsoft.Robotics.Tools.DssLogAnalyzer.EnvelopeList tmp11 = from.CurrentSelectedEnvelopes; if ((tmp11 != null)) { target.CurrentSelectedEnvelopes = ((global::Microsoft.Robotics.Tools.DssLogAnalyzer.Proxy.EnvelopeList)(Microsoft_Robotics_Tools_DssLogAnalyzer_EnvelopeList_TO_Microsoft_Robotics_Tools_DssLogAnalyzer_Proxy_EnvelopeList(tmp11))); } return(target); }