コード例 #1
0
        static RPFPolarFrameTransform createPolarFrameTransform(char zoneCode, String rpfDataType, double resolution)
        {
            if (!RPFZone.isZoneCode(zoneCode))
            {
                String message = Logging.getMessage("RPFZone.UnknownZoneCode", zoneCode);
                Logging.logger().fine(message);
                throw new ArgumentException(message);
            }
            if (rpfDataType == null || !RPFDataSeries.isRPFDataType(rpfDataType))
            {
                String message = Logging.getMessage("RPFDataSeries.UnkownDataType", rpfDataType);
                Logging.logger().fine(message);
                throw new ArgumentException(message);
            }
            if (resolution < 0)
            {
                String message = Logging.getMessage("generic.ArgumentOutOfRange", rpfDataType);
                Logging.logger().fine(message);
                throw new ArgumentException(message);
            }

            RPFPolarFrameStructure frameStructure = RPFPolarFrameStructure.computeStructure(
                zoneCode, rpfDataType, resolution);

            return(new RPFPolarFrameTransform(zoneCode, rpfDataType, resolution, frameStructure));
        }
コード例 #2
0
 private RPFPolarFrameTransform(char zoneCode, String rpfDataType, double resolution,
                                RPFPolarFrameStructure frameStructure)
 {
     this.zoneCode       = zoneCode;
     this.rpfDataType    = rpfDataType;
     this.resolution     = resolution;
     this.frameStructure = frameStructure;
 }