Examples of padNum()


Examples of nav.util.string.StringUtil.padNum()

            return "  no data  ";
        }

        if (aisROT > 0 && aisROT < 127) {
            long tiROT = Math.round((aisROT / 4.733) * (aisROT / 4.733));
            return (">>S " + u.padNum(tiROT, 3) + "�/60s");
        }

        if (aisROT < 0 && aisROT > -127) {
            aisROT = -aisROT;
            long tiROT = Math.round((aisROT / 4.733) * (aisROT / 4.733));
View Full Code Here

Examples of nav.util.string.StringUtil.padNum()

        }

        if (aisROT < 0 && aisROT > -127) {
            aisROT = -aisROT;
            long tiROT = Math.round((aisROT / 4.733) * (aisROT / 4.733));
            return ("<<P " + u.padNum(tiROT, 3) + "�/60s");
        }

        return aisROT + "   ??   ";
    }

View Full Code Here

Examples of nav.util.string.StringUtil.padNum()

            return "  no data  ";
        }

        if (aisROT > 0 && aisROT < 127) {
            long tiROT = Math.round((aisROT / 4.733) * (aisROT / 4.733));
            return (">>S " + u.padNum(tiROT, 3) + "∞/60s");
        }

        if (aisROT < 0 && aisROT > -127) {
            aisROT = -aisROT;
            long tiROT = Math.round((aisROT / 4.733) * (aisROT / 4.733));
View Full Code Here

Examples of nav.util.string.StringUtil.padNum()

        }

        if (aisROT < 0 && aisROT > -127) {
            aisROT = -aisROT;
            long tiROT = Math.round((aisROT / 4.733) * (aisROT / 4.733));
            return ("<<P " + u.padNum(tiROT, 3) + "∞/60s");
        }

        return aisROT + "   ??   ";
    }

View Full Code Here

Examples of nav.util.string.StringUtil.padNum()

  String outStr = "";
  outStr += "TYPE: " + super.getMsgType() + "\n";
  outStr += " UTC: " + super.getUtcTimeStampStr() + "\n";
  outStr += "  RI: " + super.getRepeatIndicator() + "\n";
  outStr += "MMSI: " + super.getMMSI() + "\n";
  outStr += " SOG: " + u.padNum(speed,2,1) + "\n";
  outStr += "PACC: " + super.getPosAccuracy() + "\n";
  outStr += " LAT: " + super.getPosition().toStringDegMinLat() + "\n";
  outStr += " LNG: " + super.getPosition().toStringDegMinLng() + "\n";
  outStr += " COG: " + u.padNum(course,3,1) + "∞";
  return outStr;
View Full Code Here

Examples of nav.util.string.StringUtil.padNum()

  outStr += "MMSI: " + super.getMMSI() + "\n";
  outStr += " SOG: " + u.padNum(speed,2,1) + "\n";
  outStr += "PACC: " + super.getPosAccuracy() + "\n";
  outStr += " LAT: " + super.getPosition().toStringDegMinLat() + "\n";
  outStr += " LNG: " + super.getPosition().toStringDegMinLng() + "\n";
  outStr += " COG: " + u.padNum(course,3,1) + "∞";
  return outStr;
    }

    /**
     * Returns the speed over ground in nautical milers per hour.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.