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);
 }
 public static object ProMRDS_Simulation_JointMover_Proxy_JointMoverState_TO_ProMRDS_Simulation_JointMover_JointMoverState(object transformFrom)
 {
     global::ProMRDS.Simulation.JointMover.JointMoverState       target = new global::ProMRDS.Simulation.JointMover.JointMoverState();
     global::ProMRDS.Simulation.JointMover.Proxy.JointMoverState from   = ((global::ProMRDS.Simulation.JointMover.Proxy.JointMoverState)(transformFrom));
     global::System.Collections.Generic.Dictionary <string, global:: ProMRDS.Simulation.JointMover.DOFDesc> tmp = default(global::System.Collections.Generic.Dictionary <string, global:: ProMRDS.Simulation.JointMover.DOFDesc>);
     if ((from.Joints != null))
     {
         tmp = new global::System.Collections.Generic.Dictionary <string, global:: ProMRDS.Simulation.JointMover.DOFDesc>();
         for (global::System.Collections.Generic.IEnumerator <string> iterator = from.Joints.Keys.GetEnumerator(); iterator.MoveNext();
              )
         {
             string tmp0 = default(string);
             global::ProMRDS.Simulation.JointMover.DOFDesc tmp1 = default(global::ProMRDS.Simulation.JointMover.DOFDesc);
             tmp0 = iterator.Current;
             if ((from.Joints[iterator.Current] != null))
             {
                 tmp1 = ((global::ProMRDS.Simulation.JointMover.DOFDesc)(ProMRDS_Simulation_JointMover_Proxy_DOFDesc_TO_ProMRDS_Simulation_JointMover_DOFDesc(from.Joints[iterator.Current])));
             }
             else
             {
                 tmp1 = null;
             }
             tmp.Add(tmp0, tmp1);
         }
     }
     else
     {
         tmp = null;
     }
     target.Joints = tmp;
     target.tick   = from.tick;
     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;
     }
 }
Beispiel #4
0
 /// <summary>
 ///Clones JointMoverState
 ///</summary>
 ///<returns>cloned value</returns>
 public virtual object Clone()
 {
     global::ProMRDS.Simulation.JointMover.Proxy.JointMoverState target0 = new global::ProMRDS.Simulation.JointMover.Proxy.JointMoverState();
     this.CopyTo(target0);
     return(target0);
 }