public CellInfoStruct convertToStruct() { CellInfoStruct cs = new CellInfoStruct(); cs.SourcePoint = this.SourcePoint.clone(); cs.SourceName = this.SourceName; cs.eNodeB = this.eNodeB; cs.CI = this.CI; cs.Azimuth = this.Azimuth; cs.Inclination = this.Inclination; cs.RayAzimuth = this.RayAzimuth; cs.RayInclination = this.RayInclination; cs.diffracteCoefficient = this.diffracteCoefficient; cs.reflectCoefficient = this.reflectCoefficient; cs.diffracteCoefficient = this.diffracteCoefficient; cs.diffracteCoefficient2 = this.diffracteCoefficient2; return(cs); }
public static CellInfo convertFromStruct(CellInfoStruct cs) { CellInfo c = new CellInfo(); c.SourcePoint = cs.SourcePoint.clone(); c.SourceName = cs.SourceName; c.eNodeB = cs.eNodeB; c.CI = cs.CI; c.Azimuth = cs.Azimuth; c.Inclination = cs.Inclination; c.RayAzimuth = cs.RayAzimuth; c.RayInclination = cs.RayInclination; c.diffracteCoefficient = cs.diffracteCoefficient; c.reflectCoefficient = cs.reflectCoefficient; c.diffracteCoefficient = cs.diffracteCoefficient; c.diffracteCoefficient2 = cs.diffracteCoefficient2; return(c); }